Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Dynamic attribute if-else scenario

nmand396
New Contributor
New Contributor

HI Team,

 

I am trying to use if-else condition for dynamic attribute and getting exception in logs. 

can someone help me in correcting the query. I am using below code in the UPDATEACCOUNTJSON

\"DefaultCurrencyIsoCode\": \"${if(requestAccessAttributes.get('Currency').toString()=='USD - US Dollar') 'USD' else ${account.customproperty18}\"

 

Error from task is :

{"call1":{"message":"Unrecognized token '$': was expecting ('true', 'false' or 'null')\n at [Source: java.io.StringReader@7b654e0d; line: 1, column: 1803]","status":"Failed"}}

1 REPLY 1

DaanishJawed
Saviynt Employee
Saviynt Employee