You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started: AI Resources for Oracle Cloud HCM – Go Here

Progress with Redwood: Redwood Resources for Oracle Cloud HCM -  Go Here

HCM Workers API Active Assignment Only

edited Jan 5, 2024 2:12PM in HCM REST APIs 3 comments

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":

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!