Additional Attributes of REST API
The Oracle HCM Cloud source supports aggregation of additional attributes from the Oracle Fusion HCM Workers API during get object operation.
To add additional attributes of rest API, follow the below given steps as mentioned:
-
Add the attribute name in the Account Schema.
-
Apply appropriate JSON path query for the attribute. Refer to the JSON Path Mapping to add JSON path for attribute mapping.
-
Add the following entry key:
Copy<entry key="workersAPIAdditionalFields">
<value>
<List> <String><fully qualified json path ></String>
</List>
</value>
</entry>Case 1: Suppose you want to aggregate
AssignmentName
using the JSON path given below:workRelationships..assignments[?(@.PrimaryAssignmentFlag==true && @.AssignmentType=='E' && @.PrimaryFlag==true)].AssignmentName
In this scenario, you need to mention
AssignmentName
as well as those attributes on which JSON path conditions are applied, ( such asPrimaryAssignmentFlag, AssignmentType,
andPrimaryFlag
) in the<entry key="workersAPIAdditionalFields>
Copy<value>
<List>
<String>workRelationships.assignments:AssignmentName,PrimaryAssignmentFlag,AssignmentType,PrimaryFlag</String>
</List>
</value>
</entry>