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

How to Retrieve Employee Active Assignment through Groovy Scripts

Received Response


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)

Howdy, Stranger!

Log In

To view full details, sign in.


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