Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

How to call specific calls in CREATEACCOUNTJSON of REST Connector

Harish_Yara
New Contributor III
New Contributor III

Hi Team,

We are calling 3 different calls in CREATEACCOUNTJSON of REST Connection, Syntax is shown below

{

"call": [
{
"name":"call1"

},

{
"name":"call2"

},

{
"name":"call3"

}

]

}

Here our requirement is to call only Call1 based on condition and other two calls Call1 and Call2 need not be called.

Is there any way to call only call1 by checking users condition like 

IF USER.CUSTOMPROPERTYX.EQUALS('CONTIDION') THEN CALL1

ELSE CALL2 AND CALL3

If yes help me in providing the syntax for writing if else condition.

@rushikeshvartak 

Thanks,

Harish

 

 

4 REPLIES 4

rushikeshvartak
All-Star
All-Star

On url you can have if else not on call


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

@rushikeshvartak  - Can you please help me providing sample syntax for it.

Thanks,

Harish

@rushikeshvartak  - Please find snippet I am using

Harish_Yara_0-1676009646346.png

It is giving Syntax error. Please let me know if I can do any changes to work.

 

Thanks,

Harish

      "url": "${requestAccessAttributes.addRemoveAlias==null?'https://<domain name>/admin/directory/v1/users/'+account.name:account.customproperty30.toString().contains(requestAccessAttributes.addRemoveAlias)?'https://<domain name>/admin/directory/v1/users/'+account.name+'/aliases/'+requestAccessAttributes.addRemoveAlias.trim():'https://<domain name>/admin/directory/v1/users/'+account.name+'/aliases'}",

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