and more in a single search tool across platforms. Read the announcement here. |
04/09/2023 11:58 PM
Hi,
We need to implement if-else condition during provisioning in REST connector based on the the values selected for a single drop down value in ARS form.
Ex : if the country selected is "Argentina" in the ARS form during access request , the default BU during provisioning should be "731234" , if if the country selected is "Albania" in the ARS form during access request , the default BU during provisioning should be "731226" and so on...
We are trying using this syntax below -
${(requestAccessAttributes.customproperty24.toString()=='Argentina')?'<DefaultBusinessUnit>'+'7314590'+'</DefaultBusinessUnit>':'7319017'}
The syntax is not throwing any error but is not working.
Tried using - ${(true==true)?'<DefaultBusinessUnit>'+'7314590'+'</DefaultBusinessUnit>':'7319017'} and is working as expected.
Could you please let me know how to fetch values from dynamic attribute in the if-else condition in REST connector?
Solved! Go to Solution.
04/10/2023 12:15 AM
Please try like below:
${(requestAccessAttributes.get('<Dynamic attribute name mapped to cp24')=='Argentina')?'<DefaultBusinessUnit>7314590</DefaultBusinessUnit>':'7319017'}
04/10/2023 12:22 AM
Hey Nimit,
Thank you for the response. Let me try this and get back to you
04/10/2023 05:14 AM
The tasks got provisioned from Saviynt , checking with app team if the same got updated in target . Will let you know
04/12/2023 04:46 AM
Syntax is working as expected. Thanks Nimit!