Alternative fields for mapping in the REST Connector

anandshahgrange
New Contributor
New Contributor
Reference: REST Connector - CREATEACCOUNTJSON
 
We have a requirement where business needs Accounts created with Preferred Name when it is available.
If preferred name is not available, then we need to use First Name for provisioning new accounts.
 
I did not find any specific information regarding this in the Docs portal or forums.
 
How do I specify alternative fields for mapping in the REST Connector JSON for CreateAccount?
1 REPLY 1

Vedanth_BK
Saviynt Employee
Saviynt Employee

Hi @anandshahgrange 

You can make use of the if-else condition to achieve your use case. Attaching a sample snippet below 

{\"field\": \"${(user.preferedFirstName) !=null? '+ user.preferedFirstName +':'+ user.firstname +'}}

Thank you