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

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

Thriller
New Contributor III
New Contributor III

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
New Contributor III
New Contributor III

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.