Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/24/2024 10:26 AM - edited 06/24/2024 10:26 AM
Solved! Go to Solution.
06/24/2024 01:27 PM
Hi @IGAQ , you have to merge call 2 and 3 as ideally call2 isn't an actual call to application.
And also is that if static value for entitlement, is so you can store it in an entitlement customproperty.
06/25/2024 07:29 AM
Hello @NM
If merge the calls how to get specific element from the results, Can you share any sample ?
Thanks,
06/24/2024 07:34 PM
You can store mapping in accounts customproperty and use in rest connector
06/25/2024 07:31 AM
Hello @rushikeshvartak How to store multiple values like this CP1 = 333,334
and check against remove access task ? Can you share any example JSON ?
Thanks,
06/25/2024 09:18 AM
use #CONST and javascript to concat multiple value.
I dont have sample on it.
06/28/2024 11:57 AM
Thank you all for response , below JSON is worked for me.
{
"call": [
{
"name": "Roles",
"connection": "userAuth",
"url": "@@URL?userId=${account.accountID}",
"httpMethod": "GET",
"httpParams": "{}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
},
"unsuccessResponses": {
"statusCode": [
400,
401,
403,
404,
405,
406,
415
]
}
},
{
"name": "Roles",
"connection": "userAuth",
"url": "@@URL/UserRole/${for (Map map : response.Roles1.message.resources){if (map.roleId.toString().equals(entitlementValue.entitlementID)){return map.id;}}}",
"httpMethod": "DELETE",
"httpParams": "{}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
204,
200,
201
]
},
"unsuccessResponses": {
"statusCode": [
400,
401,
403,
404,
405,
406,
415
]
}
}
]
}
06/28/2024 12:47 PM
✅👍Please click the 'Accept As Solution' button on the reply (or replies) that best answered your original question.