Add user to multiple groups after individual manager approval in a workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 08:57 PM
Hi so i have a requirement where i have created a catalog item to add or remove or modify user in those groups based on the groups selected i need to create a workflow where the user gets added to that group after the manager approves it(i.e add - automatically add the user to the group after the approval from each group manager individually, - On rejection of one group it should ignore the automation only for that group. )
i have written a script for getting the individual manager approval but I'm kind of stuck from how to go from there i need to know which group manager has approved and which has rejected to add the user to only the approved ones
Can someone please let me know how this can be achieved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 09:28 PM
If it's flow designer we can handle this little easier. I would handle this scenario like this,
1. Create a sub flow with sub flow inputs as User and a group. And this sub flow will trigger the approval to group manager using Ask for Approval Action and if it is approved, insert a record in to sys_user_grmember using Create Record action.
2. Create a flow with trigger as Application - > Service Catalog.
a. Then use Get Catalog Variables action to get the catalog variables.
b. Iterate through the groups using for each in flow logic, and call the sub flow in the form each. Make sure that in sub flow action uncheck the Wait for completion check box.
Link the flow to your catalog item as Process Engine in Catalog Item form.
Please mark my answer helpful and accept as a solution if it helped 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2023 09:26 PM
Hi @AnveshKumar M Thanks for the suggestion ill try to see if this way works