Symptom
When making an API call to the compound employee for a specific person ID, the secondary assignment periods of users classified as secondary assignments in Manage Data are returned in the payload. You want to know if it's possible to remove this data from the response and how the secondary assignment appears in the payload.
Environment
- SAP SuccessFactors HXM Suite
- Employee Central Compound Employee API
Cause
The information regarding secondary assignments is retrieved from Manage Data.
Resolution
The "SecondaryAssignmentPeriod" appears below the "employment_information," as demonstrated in the example below:
<employment_information>
<assignment_uuid>XXXXXXXXXXXXXXX</assignment_uuid>
<assignmentIdExternal>12345</assignmentIdExternal>
<!-- Other employment details -->
<SecondaryAssignmentPeriod>
<!-- Secondary assignment period details -->
</SecondaryAssignmentPeriod>
</employment_information>
If you find any secondary assignments that you do not wish to appear in the payload, you can utilize the "effective_end_date" filter to exclude them. Refer to the following link for details on how to use the filter: SAP SuccessFactors Employee Central Documentation
See Also
How to change Primary and Secondary Assignment in Concurrent Users via the Odata API
How to change the Primary/Secondary employment for an employee
Keywords
Compound employee, secondary assignment period, payload, Manage Data, effective_end_date filter, SAP SuccessFactors Employee Central. , KBA , LOD-SF-INT-CE , Compound Employee API , How To