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

Syntax for Entitlement Value Check in Condition If Else Workflow

harishyara
Regular Contributor
Regular Contributor

Hi Everyone,

How to check the entitlement value check in Conditional If Else workflow ?

Usecase - If Entitlement E1 having customproperty15 has 'ABC' value and requested through ARS for Endpoint EDP1 then it should follow manager approval process other wise it should be auto approved.

Below syntax I was using as per the fresh desk document but it is not working as expected.

harishyara_0-1686895365446.png

condition - >> entitlement.customproperty15.contains('ABC')

Any suggestions please to make this working?

Regards,

Harish

 

13 REPLIES 13

naveenss
All-Star
All-Star

hi @harishyara ,

change the expression language in the if/else condition to "select". I see you have selected groovy as the expression language now.

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

harishyara
Regular Contributor
Regular Contributor

Hi @naveenss

changed the expression language in the if/else condition to "select". But condition check is still failing for entitlement. Please let me know if this syntax is correct  entitlement.customproperty15.contains('ABC') ??

Hi @harishyara , Can you confirm if you're seeing any error in logs? Also, can you please try the below format in the if/else with expression language as "select"

entitlement.customproperty15 eq 'ABC'

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

dgandhi
All-Star
All-Star

Can you try this?

{entitlement.customproperty15 == 'ABC'}

 

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.

harishyara
Regular Contributor
Regular Contributor

Hi @dgandhi 

I tried your version. Approval workflow is not going to other approval nor it is Approved. After approving by manager(it is showing approved) but it is still sitting in Manager Approval state only.

@naveenss - I tried with eq operator also but no luck.

Regards,

Harish

Provide screenshot of the workflow.

 

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.

harishyara
Regular Contributor
Regular Contributor

@dgandhi - Please find screenshot.

harishyara_0-1687183763124.png

Regards,

Harish

Hi @dgandhi - Kindly let me know your findings. Thank you.

Regards

Harish

Don't see any issues with the configs. Can you please share the logs for any one of the requests? Do you see any error in the logs?

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

harishyara
Regular Contributor
Regular Contributor

Hi @dgandhi - If I use {entitlement.customproperty15 == 'ABC'} I am getting below error in logs

harishyara_0-1687194303283.png

@naveenss  - even though I used this entitlement.customproperty15 eq 'ABC' taken from fresh desk document still it's not working. Any thoughts around this?

Regards,

Harish

Hi @harishyara , kindly remove the braces {} before and after the expression and try again. 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

entitlement.customproperty15.equalsIgoreCase( 'ABC')

block name avoid spaces


Regards,
Rushikesh Vartak
If you find this response useful, kindly consider selecting 'Accept As Solution' and clicking on the 'Kudos' button.

harishyara
Regular Contributor
Regular Contributor

Hi @rushikeshvartak  - Tried with entitlement.customproperty15.equalsIgoreCase( 'ABC'). Still no luck. Able to pull this error out. 

harishyara_0-1687251253464.png

Regards,

Harish