Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/30/2024 05:51 AM
Hello
In REST Connector, it support multiple API calls with call1, call2 and call3 etc.
In my case, call1 will be executed. but call2 and call3 execution should be depend on the response of call1. For example if call1.returnCode is 0 execute call2. but if call1.returnCode is 1, execute call3.
Any help please!
Solved! Go to Solution.
05/30/2024 05:57 AM
You can use callcondition or connection name logic
05/30/2024 06:29 AM
Hello Rushikesh,
Thank you very much! Really appreciate your prompt answer.
Now if I want to use a short variable to represent the response data of first API call, how should I do it?
For example, instead of using response.call1.message.data, use respVar?
Can I claim it with:
{
"respVar" : response.call1.message.data
}
05/30/2024 06:33 AM
You can try but it should come from response.
05/30/2024 06:40 AM - edited 05/30/2024 06:40 AM
I see. in SOAP Connector, I can see this is defined. I am wondering if we can do same in REST Connector? Any idea?
"RESPONSEMAPPING": {
"errorCode": "Body.loginResponse.loginReturn.errorCode"
}