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