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

If-Else block in Workflow

AtrayeeDutta07
New Contributor
New Contributor

Hi Team,

I am trying a multilevel workflow for 1st level is ent cp9 have 1 the Manager, if 2 then App Owner approval, if 12, then first manager then App owner. But whatever condition I give its going to Manager only and approval completed after that. This is a very simple scenario but not working.

using this entitlement.customproperty9.contains('1')

tried with XML as well

<condition expr="#{((entitlementslist.get(requestaccesskey).customproperty9 ne null) and (entitlementslist.get(requestaccesskey).customproperty9.contains('1'))) eq true }"/>

customproperties in ent are updated accordingly, can anyone pls help me with the correct syntax for the if-else condition?

AtrayeeDutta07_0-1724862196096.png

tried these syntax as well from freshdesk:

(entitlement ne null) and (entitlement.customproperty15 ne null) and (entitlement.customproperty15.contains('ABC') eq true)

Can anyone pls help on the same.

Regards,

Atrayee

 

 

8 REPLIES 8

Amit_Malik
Valued Contributor II
Valued Contributor II

Hi @AtrayeeDutta07 ,

Can you try this - (entitlement.customproperty9 == '1')

Second block (entitlement.customproperty9 == '2')

 

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

rushikeshvartak
All-Star
All-Star
  • Change conditions as below
  • Block NameBlock TypeCondition
    manager(entitlement.customproperty1 eq '1') or (entitlement.customproperty1 eq '12') Validate manager / Manager+ App owner
    app owner(entitlement.customproperty1 eq '2') Validate if only App owner
    managerappowner (entitlement.customproperty1 eq '12') add after manager approved node and send to app owner block
  • rushikeshvartak_0-1724897635252.png

     


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

stalluri
Valued Contributor
Valued Contributor

@AtrayeeDutta07 Use below Worflow.

Screenshot 2024-08-28 at 10.09.07 PM.png


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.

AtrayeeDutta07
New Contributor
New Contributor

Hi Team,

Cant we use contains ? we have one more level as Ent owner, 3levels, for 3 levels its 123


MANAGER 1
MANAGER+APP OWNER 12
MANAGER+APP OWNER+ENT OWNER 123
APP OWNER 2
APP OWNER+ENT OWNER 23

ENT Owner 3

MANAGER+ENT OWNER 13

When I am using contains its failing.

Regards,

Atrayee

You can use contains also


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

AtrayeeDutta07
New Contributor
New Contributor

Hi Rushikesh,

Can you please let me know a working block using contains, entitlement.customproperty9.contains('STPC') which this, while raising req its encountering error.

Regards

You need to also add null check as account will not have cp9 

entitlement != null and entitlement.customproperty9.contains('STPC')


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

AtrayeeDutta07
New Contributor
New Contributor

Thanks Rushikesh, this works.

Regards,

Atrayee