Symptom
When running a Compound Employee API query with the 'employee_class' filter, there are records in the response that contain 'employee_class' values that were not provided in the filter.
Environment
- SAP SuccessFactors HCM Suite
- Compound Employee API
Reproducing the Issue
- Run a Compound Employee API query with the below filter, for example:
- AND employee_class IN ('1','2','3')
- Records with <employee_class>4</employee_class> are being returned in the response.
Cause
The unexpected employee record being returned in the response has some other job_information with an employee_class value that matches the filter.
Resolution
If the unexpected employee record being returned in the response has some other job_information with an employee_class value that matches the filter, it's expected for it to be returned.
This happens because the employee_class filter does not affect the response payload. So, if at least one job_information record contains an employee_class value that matches the filter, all job_information records for that employee are returned.
Keywords
compound employee api, ce api, ce, employee class, unexpected, job_information, , KBA , LOD-SF-INT-CE , Compound Employee API , Problem
SAP Knowledge Base Article - Public