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

Adding condition in checkforunique json

shivampatil
New Contributor
New Contributor

Hi All,

I am trying to add condition in checkforunique Json for email generation in connection. But getting error while provisioning. Can you please help me to add condition having list in the below code.

{"email": "${if(user?.employeeType.equals('Shop')){'Shop'.concat(user.customproperty1.concat('@abcd.com'))} else if (user.companyname.equals('1234') && !user.jobcode IN ('5001','5002','5003','5004','5005','5006','5007','5008')){user.customproperty12.concat('.'.concat(user.customproperty13.concat('@xyzgroup.com'))).replaceAll(' ','')} else {user.customproperty12.concat('.'.concat(user.customproperty13.concat('@efgh.com'))).replaceAll(' ','')}}"}

 

Thanks & Regards,

Shivam

1 REPLY 1

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @shivampatil,

Please try to use the below json and also trace the logs,
{
"email": "${user?.employeeType.equals('Shop') ? 'Shop'.concat(user.customproperty1.concat('@abcd.com')) : (user.companyname.equals('1234') && !['5001','5002','5003','5004','5005','5006','5007','5008'].contains(user.jobcode)) ? user.customproperty12.concat('.'.concat(user.customproperty13.concat('@xyzgroup.com'))).replaceAll(' ','') : user.customproperty12.concat('.'.concat(user.customproperty13.concat('@efgh.com'))).replaceAll(' ','')}"
}

 

Thanks,

If you find the above response useful, Kindly Mark it as "Accept As Solution".