How to show user to select assigned to user prompt in sub flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
The Configuration Item (CI) is not empty.
The incident is not resolved, cancelled, or closed.
Prompt: Ask the user:
“Do you want to update the ‘Assign To’ or the ‘Assignment Group’?”
Assignment Group Logic:
Retrieve the group from the Assignment Group field in the CI.
Map this value to the Assignment Group field in the incident.
If the Assignment Group is not available at the CI level, check at the Company level.
Assign To Logic:
Retrieve the Assign To value from the CI.
Map it to the Assign To field in the incident.
If the value is not present:
Display all members of the Assignment Group.
Prompt the user to manually select an assignee.
I have created a playbook with decision tree and in decision tree I have given the question to select assignment group or assigned to and then I created a guidance and build the flow logic using subflow and added the subflow to guidance to make it work.but in
I have worked till Assigned to CI mapping using the playbook and guidance but I stucked how to display all members of the Assignment group and prompt the user to manually select assignee .Because I am using sublow to build the logic but in sub flow
Anyone can please help me on this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @Sangeetha8 ,
You should define a flow or subflow variable (for example selected_assignee of type User) so you can store the user’s choice, then use a Look Up Records action on the sys_user_grmember table filtering for the Assignment Group and user.active = true to fetch all active members....
then, add that list into a user prompt or Ask For Input step so the user can pick one of those group members, use the flow variable to capture which user was chosen, ensure the incident record (or its sys_id) is passed into the subflow as input so you can map the chosen user into the incident Assigned To field...
Include a decision logic first to check if CI already has an Assign To so you only prompt if needed, and make sure the flow execution context has permission to read both sys_user and sys_user_grmember so the lookup and prompt will return visible results...
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/