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

Create Account with Boolean attribute assignment

ashu1
New Contributor
New Contributor

Dear Saviynt Community Colleagues,

We are using a REST connector to integrate Salesforce application. We have some very specific usecases which can not be done via Salesforce connector so there is no option to utilized the Salesforce OOTB connector.

We are using OOTB REST connector. We have to create users at salesforce with boolean accepted attributes which required (true/false) (checkbox at salesforce) boolen assignment. 

I am trying below code to check first if user is L1 , L2 or L3 than decide the true or false. Here 'persona' is coming from dynamic attribute when user select a role and submitting in request.

\"SupportUser\": ${if(requestAccessAttributes.get('persona').toString() =='L1') 'true' else if(requestAccessAttributes.get('persona').toString() =='L2') 'true' else if(requestAccessAttributes.get('persona').toString() =='L3') 'true' else 'false'},

The code is giving the error Unrecognized char $.

When we put the code inside \" ... \". Basically the "SupportUser" attribute take this as string instead of the boolean value.

\"${if(requestAccessAttributes.get('persona').toString() =='L1') 'true' else if(requestAccessAttributes.get('persona').toString() =='L2') 'true' else if(requestAccessAttributes.get('persona').toString() =='L3') 'true' else 'false'}\",

I would like to know know how to achieve this logic to pass boolean after check with if else condition. This is blocking us for Go Live so your urgent help will be appreciated. 

 

 

 

1 REPLY 1

SB
Saviynt Employee
Saviynt Employee

Can you confirm if your if/else condition working otherwise and giving the desired output for true/false.

If it is, can you try to convert the output to .toBoolean() and validate.


Regards,
Sahil