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

Can we restrict/create UpdateAccount Task based attribute value

IAM_99
Regular Contributor II
Regular Contributor II

Hi All,

We have UpdateAccount JSON for a REST connector - Can we call ( not through rules) UpdateAccount Task only if some account attribute is not null ?

 

Can we put condition like this inside UpdateAccount JSON ?

 

If(account.cp18='Abc')

Call { UpdateAccountJSON}

else { Do nothing }

 

any idea on this ?

 

2 REPLIES 2

manu
New Contributor III
New Contributor III

Hello @IAM_99,

 

You can alternatively make a dummy call inside your JSON and only make the actual call if the attribute is set to the desired value. You can use if-else construct or ternary operators to achieve this.

 

Thanks,

Manu

IAM_99
Regular Contributor II
Regular Contributor II

Hi @manu , Can you share any reference or sample json if possible