Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/28/2024 09:29 AM
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?
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
Solved! Go to Solution.
08/28/2024 09:46 AM
Hi @AtrayeeDutta07 ,
Can you try this - (entitlement.customproperty9 == '1')
Second block (entitlement.customproperty9 == '2')
08/28/2024 10:01 AM - edited 08/28/2024 07:14 PM
Block Name | Block Type | Condition |
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 |
08/28/2024 07:09 PM
@AtrayeeDutta07 Use below Worflow.
08/30/2024 07:22 AM
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
08/30/2024 07:23 AM
You can use contains also
08/30/2024 07:26 AM
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
08/30/2024 07:31 AM
You need to also add null check as account will not have cp9
entitlement != null and entitlement.customproperty9.contains('STPC')
09/02/2024 01:04 AM
Thanks Rushikesh, this works.
Regards,
Atrayee