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.
For more information, please refer to this announcement explaining best practices for getting answers to questions.
Worker API to get the worker's latest active assignment
Content
One of our vendor is using the Worker API to get the worker's active assignment.
The Worker API is working fine, but the vendor is having issues retrieving the worker child resources through API. They have to excute 2-3 API Calls to retrieve the active assignments. Is there any alternate endpoint to use to pull both the parent and child resource together?
Currently, this is how they pull the worker info -
1. Make an API call to: https://****.fa.us2.oraclecloud.com:443/hcmRestApi/resources/11.13.18.05/workers/?q=PersonNumber=123 just to get the array of links. Then would need to step through the links array and check the value of “name”, if the value of name equals "workRelationships" then get the “href” link, and make a subsequent call to that API endpoint.
Tagged:
1