Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/11/2024 05:31 AM - edited 07/11/2024 05:37 AM
Hello,
Can anyone help with incorporating conditional expression to determine the value of the accounttype field based on the userType in a REST Connector ImportAccountEntJSON? Specifically, if the userType is 1346, it should be set to "IT Admin"; if the userType is 1312, it should be set to "IT Viewer"; otherwise, it should default to the userType value.
Thank you.
Solved! Go to Solution.
07/11/2024 06:43 AM
@mgandr use the below logic in your accountParams
"accounttype": "#CONST#${String userType = response.userType;if(userType=='1346'){return 'IT Admin'}else if(userType=='1312'){return 'IT Viewer'}else {return userType}}~#~char",
07/11/2024 07:50 AM
Thanks for your help. The logic worked.
07/11/2024 06:45 AM
Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️
07/11/2024 06:57 AM
Hi @mgandr , are you receiving user type attribute from account import get call?