Symptom
While trying to fetch the details for PerNationalId of the dependents by navigating from PerPersonRelationship, only first record is returned for national id of dependents via Integration center or OData API query.
Environment
SAP SuccessFactors HCM suite
- OData API
- Integration Center
Reproducing the Issue
- Perform an OData API get call or create an Integration Center job with starting entity as PerPersonRelationship.
- From PerPersonRelationship, navigate to PerNationalId to fetch the details for National ID of the dependent.
- The result returns only the first record for PerNationalId of the dependent.
Cause
This is a legacy behavior. The navigation from PerPersonRelationship to PerNationalId is many-to-one navigation. Therefore, it only returns first record from DB even if the related person/dependent has multiple national id details available.
Resolution
In order to query all the records of PerNationalId via API/Integration center is to query PerNationalId entity seperately by filtering the relPerson's id.
See Also
Keywords
LOD-SF-INT-API, OData, API, Integration center, PerPersonRelationship, PerNationalId, many-to-one, navigation, LOD-SF-INT-ODATA , KBA , LOD-SF-INT-EC , Employee Central SFAPI & OData Entities , LOD-SF-INT-ODATA , OData API Framework , Problem
SAP Knowledge Base Article - Public