Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Logic to differentiate the whether the task is a request or a Birthright

Thriller
Regular Contributor
Regular Contributor

I need a way to differentiate a task based on whether it is a request or a Birthright. I tried to enter in below code for a REST connector but it is giving me below error

\"DataSecurityGroupId\":\"${if(task.source.equals('ZERODAY')) {'EA_CC_TEAM'} else {''}}\"

\"DataSecurityGroupId\":\"${if(task.source.equals('REQUEST')) {''} else {'EA_CC_TEAM'}}\"

Pmanand_0-1712781467530.png

What changes I need to do to make sure that it doesn't throw the above error message

 

3 REPLIES 3

dgandhi
All-Star
All-Star

Can you try arsTasks.source

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

Thriller
Regular Contributor
Regular Contributor

Thank you, Devang

rushikeshvartak
All-Star
All-Star

Please share full json and confirm connector type and which JSON is this (ADD/REmove)


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.