Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/01/2024 09:00 PM
Hi Team,
We have use case regarding to workflow where we have to check if user attribute cp1 is 'ABC' then user creation approval will go to 1st workflow, If cp1 is 'XYZ' then user creation workflow will go for another approval process. How we can configure this in single workflow?? Basically we have to trigger workflow while user will upload user creation request using User Management for external users.
Let me know the process for this use case.
Thanks ,
Gaurav
04/01/2024 09:07 PM - edited 04/01/2024 09:08 PM
You can use if else logic
(dynamicAttributes.get('customproperty1') eq 'XYZ')
04/10/2024 09:29 AM
Is this will work while user creation?? User Manager will upload the csv file and then our workflow should be triggered let's say if user comment is 'Create Account in AD' then it should go for Manager and AD application owner, and if in the comment if I am passing 'Create Account in Salesforce' then it should go for Manager only.
04/10/2024 07:32 PM
Yes it will work
04/24/2024 06:08 AM
Hi Rushikesh Vartak,
As per your suggestion, I used if-else logic as (dynamicAttributes.get('customproperty1') eq 'XYZ') in my workflow but it is auto rejecting can you please help me with this. I have attached workflow screenshot for your reference.
04/24/2024 09:07 PM
what is name of dynamic attribute?
04/24/2024 09:54 PM - edited 04/24/2024 10:04 PM
Hi @rushikeshvartak ,
We are not using dynamic attribute. we are using user attribute(comments). we tried below syntax.
user.comments ep 'ABC'
users.commentes eq 'ABC'
user.comments=='ABC'
users.commentes == 'ABC'
users.commentes ='ABC'
user.commentes = 'ABC'
Let me know the correct syntax.
Basically the requirement is : Manager will create user in Saviynt via CSV import and in the CSV he will mentioned the comments based on comments we have to trigger different different workflows.
Ex. In the CSV 3 users are there, 1st user comment is 'ABC' the request should be auto approved , In the 2nd user comments is 'XYZ' the flow should go for only manager approval, In the 3rd user comment 'PQR' then request should go for Manager, then one user group then application owner.
Hope you understand the requirement.
Thanks,
Gaurav
04/25/2024 09:43 PM - edited 04/25/2024 09:44 PM
I have understood requirement and suggested solution.
You need to create dynamic attribute and make it hidden if you dont want to show to user and perform action.
Sample (user.statuskey == 0 and ((dynamicAttributes.get('statuskey') != null) and (dynamicAttributes.get('statuskey') == 1)) and ((dynamicAttributes.get('customproperty61') != null) and (dynamicAttributes.get('customproperty61') == 'Rehire')) )
04/25/2024 09:45 PM
this will check user attributes which is present in CSV ? or requestor comment it will check.
04/25/2024 10:01 PM
${ars_request.comments.equalsIgnoreCase('ABC')}
04/26/2024 01:11 AM
Hi @rushikeshvartak or can we check requestor Sav role ?? If Requestor Sav role is Admin the auto approve , Requestor sav role is AD_Admin then go for approval ?
Can we check this condition please share the sample query if we can do this.
04/26/2024 12:35 PM
You can do using dynamic attribute based on ${loggedInUser} will provide userkey of requestor
04/28/2024 10:34 PM
Thanks!
04/29/2024 09:18 PM
Please click the 'Accept As Solution' button on the reply (or replies) that best answered your original question.