JSON Path Mapping

Warning
The PERSON_NUMBER attribute should not be updated in the JSON Path Mapping.

Full Aggregation

The Oracle HCM Cloud SaaS connector will aggregate the attributes associated with the primary work relationship and corresponding assignments based on the dates. In order to change this behavior, specify the attribute value as specified below in JSON Path Mapping. This will enable the customer to fetch the work relationship and Job Information in accordance with your requirements.

The following API response is an example of how to specify the JSON path query for the workRelationships attribute:

Copy
"workRelationships": [
{
"PeriodOfServiceId": 300000034528102,
"LegislationCode": "IN",
"WorkerType": "E",
"PrimaryFlag": true,
"StartDate": "2022-08-11",
"assignments": [
{ "AssignmentId": 300000034528108,
… }
]
},
"PeriodOfServiceId": 300000034528226,
"LegislationCode": "IN",
"WorkerType": "N",
"PrimaryFlag": false,
"StartDate": "2022-08-23",
"assignments": [
{"AssignmentId": 300000034528233,
… }
]
  1. Select Add Another to add a new entry.

  2. In each row, enter a CSV/Schema Attribute name, its corresponding JSON Path, and ATOM Feeds Attribute.

  3. (Optional) Select Add Another to add more rows to the list.

  4. Select Save.

Delta Aggregation

The Oracle ATOM feed API response is divided into the following parts:

  • Context

  • Changed Attributes

By default, the Oracle HCM Cloud Connector fetches the information from the Changed Attributes section. If you want to change this behavior, the JSON Path mapping section can be used. For example,

Copy
Context" : [ {
    "PersonNameId" : "300000040265075",
    "PersonName" : " 7939first",
    "PersonNumber" : "7939",
    "WorkEmail" : "test@gmail.com",
    "PrimaryPhoneNumber" : "",
    "PersonId" : "300000040265074",
    "PeriodType" : "E",
    "WorkerType" : "EMP",
    "DMLOperation" : "UPDATE",
    
  } ],
  "Changed Attributes" : [ {
    "OrderName" : {
      "old" : "test",
      "new" : "test 7939first"
    }
  }, {
    "ListName" : {
      "old" : "test",
      "new" : "test1"
    }
  }, {
    "FirstName" : {
      "old" : null,
      "new" : "7939first"
    }
  }, {
    "FullName" : {
      "old" : "test",
      "new" : "7939first"
    }
  },
  }, {
    "Title" : {
      "old" : null,
      "new" : "MR."
    }
  }, {
    "MiddleNames" : {
      "old" : null,
      "new" : "7939middle"
    }
  } ]
}]]>

In the following example, the PersonName attribute is not available in Changed Attributes. Therefore, the connector will not fetch the value out of the box. To fetch it, you can specify the following JSON path.

Copy
Context[0].PersonName