02/09/2023 08:48 PM
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.
Thanks,
Harish
02/09/2023 09:28 PM
On url you can have if else not on call
02/09/2023 09:36 PM
02/09/2023 10:14 PM
@rushikeshvartak - Please find snippet I am using
It is giving Syntax error. Please let me know if I can do any changes to work.
Thanks,
Harish
02/10/2023 08:11 PM
"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'}",