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.
How to Retrieve Employee Active Assignment through Groovy Scripts
Summary:
We are trying to get employee active assignments inside the Groovy scripts. For that, we need to configure the endpoints in web services. In the latest worker end date, unable to get the active assignment through a single API endpoint call. How can we use multiple API calls inside the Groovy scripts?
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Code Snidef PersonNumber = PrimaryContactPersonId
PersonNumber = PersonNumber.toString()
def x = adf.webServices.RespondantDetailsNew.GET(PersonNumber)
def GradeID = x.items.assignments.GradeId
GradeID = GradeID.get(0)
GradeID = GradeID.toString()
def GradeName = adf.webServices.GradeName.GET(GradeID)
Tagged:
0