Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Issue with Multi-Call API Request Not Passing XRefCode Between Calls

Leofrancis
New Contributor
New Contributor

Hi all,

I'm working on a multi-call setup to retrieve employee details from DayForce using a rest connection that involves two API calls. The first call (call1) fetches the XRefCode, which I need to pass into the second call (call2) to retrieve the employee's details.

Problem: The first call works perfectly when run in isolation, returning the correct XRefCode. However, when I set up the multi-call scenario, the second call fails because it doesn't seem to receive the XRefCode from the first call.

The error I'm seeing is:  Error while getting User Import Response WebService call failed with responseStatusCode null

Failed url-/${call1.response.Data.XRefCode}.json with Error Message-null

Error In Getting Response In pullObjectsByRest 

NullResponseFromTarget

{
"type":"multiCall",
"call":[
{
"name":"call1",
"connection":"userAuth",
"url":"https://URL",
"httpMethod":"GET",
"httpHeaders":{
"Content-Type":"application/json",
"Authorization":"${access_token}"
},
"colsToPropsMap":{
"username":"XRefCode~#~char"
},
"userResponsePath":"Data"
},
{
"name":"call2",
"connection":"userAuth",
"callCondition":"${response.call1.message.Data.size()>0}",
"url":"URL/${call1.response.Data.XRefCode}.json",
"httpMethod":"GET",
"httpHeaders":{
"Authorization":"${access_token}"
},
"colsToPropsMap":{
"username":"EmployeeNumber~#~char",
"employeeid":"EmployeeNumber~#~char",
"firstname":"FirstName~#~char",
"lastname":"LastName~#~char",
"statuskey":"EmploymentStatuses.Items[0].EmploymentStatus.XRefCode~#~char"
},
"userResponsePath":"Data"
}
]
}

 

Even though call1 returns the XRefCode, the second call is still failing. I'm not sure why the XRefCode isn't being passed properly.

Any suggestions or insights on how to fix this would be greatly appreciated!

6 REPLIES 6

rushikeshvartak
All-Star
All-Star
  • Can you share response & logs in text file 

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

attaching the logs below

NM
Honored Contributor III
Honored Contributor III

@Leofrancis use this 

"url":"URL/${response.call1.Data.XRefCode}.json",

Leofrancis
New Contributor
New Contributor

still the same issue

NM
Honored Contributor III
Honored Contributor III

@Leofrancis i believe then it is not supported to reference call1 response in call2 for user import.

Vedanth-BK
Regular Contributor II
Regular Contributor II

hello @Leofrancis 
Reference from the previous calls is supported only in provisioning JSONs 

Thank you
Vedanth B.K
If you find my response helpful and it works, Hit the 'Kudos' button and accept it as a solution!!