Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/06/2022 07:51 AM
Solved! Go to Solution.
05/10/2022 05:52 AM
Hi Pratyush,
Which version of Saviynt are you on?
In your remove access json, you need to put the input of the first call into the url of the second call.
You should be able find examples of this in our rest connector documentation guide:
https://saviynt.freshdesk.com/support/solutions/articles/43000521736-rest-connector-guide
I am attaching an update account json sample below. You can do similar for your remove access json.
{
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"responseColsToPropsMap": {
"displayname": "call2.message.user.name~#~char"
},
"call": [
{
"name": "call1",
"callOrder": 0,
"connection": "acctAuth",
"url": "https://saviynt3381.zendesk.com/api/v2/users/${account.accountID}",
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
204,
201,
200
]
}
},
{
"name": "call2",
"callOrder": 1,
"connection": "acctAuth",
"url": "https://saviynt3381.zendesk.com/api/v2/users/${response.call1.message.user.id}",
"httpMethod": "PUT",
"httpParams": "{\"user\": {\"name\": \"${user.firstname} ${user.lastname}\"}}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
204,
201,
200
]
}
}
]
}