HCM Workers API Active Assignment Only
Summary:
Hello experts,
We are trying to use Workers API to fetch Active Assignment only with "expand=workRelationships.assignments".
Workers API returns all assignments regardless of their status. Is there a way to filter them?
I've tried using effectiveDate query parameter, no luck with this.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
/hcmRestApi/resources/11.13.18.05/workers?onlyData=true&expand=workRelationships.assignments&effectiveDate=2024-01-04&q=PersonNumber='10159'
{
"items": [
{
"PersonId": 300000132646808,
"PersonNumber": "10159",
"CorrespondenceLanguage": null,
"BloodType": null,
"DateOfBirth": "",
"DateOfDeath": null,
"CountryOfBirth":