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

Account Type transformation for account import

mgandr
New Contributor III
New Contributor III

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.

 

 

 

4 REPLIES 4

naveenss
All-Star
All-Star

@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",

 

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

mgandr
New Contributor III
New Contributor III

Thanks for your help. The logic worked.

rushikeshvartak
All-Star
All-Star

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.‼️‼️⚠️


Regards,
Rushikesh Vartak
If you find this response useful, kindly consider selecting 'Accept As Solution' and clicking on the 'Kudos' button.

NM
Valued Contributor II
Valued Contributor II

Hi @mgandr , are you receiving user type attribute from account import get call?