and more in a single search tool across platforms. Read the announcement here. |
03/13/2024 09:21 AM
Hi all,
Is there a way to skip an API call inside the AddAccessJSON of a REST connector, based on a condition? In our use case, we don't want the API in that call to be triggered at all if a particular condition fails. We also don't want the AddAccessTask to fail while trying to skip this call.
I was exploring the "callCondition" attribute but as per the documentation, it is only available in the CreateAccountJSON. I was hoping to use a similar option in the AddAccessJSON.
Any guidance on this topic would be greatly appreciated!
Thanks & Regards,
Akshar
03/13/2024 12:58 PM
Hi Akshar,
Can't you do something to not create the task instead creating and then trying to skip.
If not possible, you can have if else / ternary operator to use two urls. The SKIP url could be anything like health check etc..
Same in http params ,
Thanks,
Amit
If this answers your query, Please ACCEPT SOLUTION and give KUDOS.
03/13/2024 03:29 PM
callCondition Works in all jsons
"callCondition": "${arstasksObj?.source == 'WEBSERVICE'}",
i have used above in rest connector and azure ad connector in v24.2
03/14/2024 12:02 AM - edited 03/14/2024 12:18 AM
Hi Rushikesh, thank you for your response.
We had used "callCondition": "${entitlementValuesObj.entitlement_value == 'Entitlement Value'}" in our AddAccessJSON (Saviynt version 23.10), but this call did not get triggered and there was no error message either. Kindly let me know if the above condition seems fine to you.
03/14/2024 01:49 AM
As per Saviynt doc , callCondition only supported for "CreateAccountJSON".
callCondition | Use this attribute in the following scenarios:
Note This attribute is supported only for the CreateAccountJSON parameter. |
03/14/2024 09:34 PM
It works in all JSONs
03/14/2024 09:36 PM
"callCondition": "${arstasksObj?.entitlementValueKey.entitlement_Value== 'ABCD'}",
03/13/2024 08:32 PM
Hi @aksharkay, you can also try something like this.
"connection": "${if(user.customproperty2 == 'Test'){'acctAuth'}else {''}}"