Add a single user to multiple assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @DeveloperG
Try these steps:
Step 1: Catalog build.
Ensure you have following 2 variables in catalog form:
- User Variable: A Reference variable pointing to the sys_user table (like requested_for).
- Groups Variable: A List Collector variable pointing to the sys_user_group table.
Step 2: Flow Designer Setup
Follow this logic flow :
- Trigger: Set to Service Catalog on the sc_req_item table.
- Get Catalog Variables: Add an action to pull your User and Groups variables.
- For Each Loop: Use the For Each flow logic. Pass your list collector "Groups" variable array into this loop to process each selected group individually.
Inside the For Each loop, perform the following actions:
- Look Up Group Record: Use the Look Up Record action to find the group in the sys_user_group table using the Current Item from your loop.
- Add an Ask for Approval action
- Set the Approver to the Requestor's Manager
- Approval Check (If Block): Create an If condition to verify if the approval state is Approved.
- Add an If condition directly after the approval step checking if the approval state is Approved.
- If approved, use the Create Record action to add a new record to the sys_user_grmember table
- Map the User field to the requested user and the group field to the current group being processed in the loop
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
@GlideFather Can you please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
@GlideFather Please see this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
@DeveloperG here your screenshot says inactive but it's not that as it wouldn't work at all and you said it worked partially..
perhaps the condition on step 11 - instead of if else to make it just if or anything else.
Perhaps it would be helpful to see the executions, click the test button select for existing RITM (no need to create new data) then run the test, see the flow execution with details, then you can update your flow and test it the same again with the same record until you achieve what you want to achieve.
My example is with knowledge approval but for demo purposes it shall be ok:
Flow execution - conditions evaluation (if you approve it manually then you can refresh this to see the latest change)
Answers generated by GlideFather. Check for accuracy.