Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.

For more information, please refer to this announcement explaining best practices for getting answers to questions.

Extracting work relationship data using REST API

Summary:

I need to retrieve start date and termination data for an employee using worker REST API.But when I use the worker API ,I have to further use the link for work relationship collection to traverse to work relationship data which is a child of worker.I am able to use worker REST API using the below URL:

/hcmRestApi/resources/11.13.18.05/workers?q=PersonNumber=10013510

But I am not able to fetch work relationship data using the below REST API:


/hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships/{PeriodOfServiceId}


I tried to pass person id against the field {workersUniqID} and tried to retrieve all work relationships but it is not giving me any data. Can someone help me understand how do I create a parameterized URL where I can directly retrieve start date and end date from work relationship for a worker.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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