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 with Redwood for Oracle Cloud HCM   Begin Now

How to GET all active employees from the worker API endpoint

edited Mar 25, 2024 2:05PM in HCM REST APIs 1 comment

Summary:

Need to GET all active employees from the worker API endpoint, but it is returning active and inactive employees.

Content (please ensure you mask any confidential information):

/hcmRestApi/resources/11.13.18.05/workers?q=(workRelationships.assignments.AssignmentStatusType='ACTIVE') and (workRelationships.assignments.PrimaryFlag=true) and (DateOfBirth is not null)&totalResults=True&limit=25&expand=workRelationships.assignments

Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

{

    "items": [

        {

            "PersonId": 300000027235552,

            "PersonNumber": "00337524",

            "DateOfBirth": "1969-07-25",

            "workRelationships": [

                {

                   "assignments": [

                        {

                            "AssignmentStatusType": "INACTIVE",

                           "PrimaryFlag": false,

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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