Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/17/2024 09:57 AM
Hi,
We are trying the enable account on a SAP OOTB connector, however we get an error message:
Code:
"CLASS": "${if(ServiceAccountOwnerMap.get("ServiceAccountType") == 'L')? 'REFERENCE' : 'SUPER'}",
Error: Error while enableAccountSAP - No such property: ServiceAccountOwnerMap for class: SimpleTemplateScript103.
ServiceAccountOwnerMap works while in create account json.
Any recommendations?
09/17/2024 09:58 AM
accountsObj.accountType
09/17/2024 10:33 AM - edited 09/17/2024 10:34 AM
Hi,
Adding this neither gives any error nor completes the task. On removing this, the task got completed.
09/17/2024 10:40 AM
arsTaskObj.accountKey.accountType
09/18/2024 04:11 AM
Hi Rushi,
This does not work either. I even tried
"CLASS":"${if(task?.accountKey.accountType == 'L')? 'REFERENCE' : 'SUPER'}" but it didnt work.
However, on hardcoding the task got completed. Strangely, there is no error in logs that could be fetched
09/18/2024 04:28 AM
It seems variables are not supported Please raise support ticket to get confirmed
09/18/2024 05:31 AM - edited 09/18/2024 05:31 AM
Hi,
The below worked: I guess the 'if' keyword was causing an issue
"CLASS":"${account?.accounttype=='L'?'REFERENCE':'SUPER'}",
09/18/2024 05:35 AM
You can also give like this if any default class
"CLASS":"${account?.accounttype === 'L' ? 'REFERENCE' : (account?.accounttype ? 'SUPER' : 'DEFAULT_CLASS')}",