Populate assignment group based on catalog item RITM by using Flow in Flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
Hi ServiceNow Devs,
I've a requirement to populate the assignment group based on catalog item RITM, all catalog items are using same variables.
But different assignment group is used for all catalog items. There are 18 catalog items RITM mapped to different assignment group, but variables populate are common for all catalog items.
How to approach by using flow in Flow designer?
Regards,
Nikhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
What you’re describing is that you have 18 catalog items that all use the same variables, but each catalog item should go to a different assignment group. You can handle this with a single flow in Flow Designer and a decision table:
Create a Decision Table:
Condition column = Catalog Item
Result column = Assignment Group
Add 18 rows mapping each catalog item to its assignment group.
Flow setup:
Trigger: Run on Requested Item (sc_req_item) created.
Action: Add a Decision Table action and pass the Catalog Item from the RITM.
The Decision Table will return the correct Assignment Group.
Update Record: Use an Update Record action to set the RITM’s assignment_group field with the result from the decision table.
This way, you don’t clutter the flow with multiple branches, and if you ever need to change the mapping later, you just edit the decision table instead of editing the flow.
Check out this article for reference: https://www.servicenow.com/community/developer-articles/smarter-assignment-using-decision-tables-flo...
Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
in your flow you can check the catalog item name associated with the current RITM
Within "Update Record" on RITM you can use f(x) inline script to set it dynamically
check this and enhance
Flow Designer to set assignment group based on variable value dynamically
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
42m ago
Hi @NikhilKumaK
you're looking to use Flow Designer in ServiceNow to:
- Use an Update Record action on the sc_req_item (RITM) table.
- Set the Assignment Group field.
- Use an inline script to get the Assignment Group sys_id based on the Catalog Item name using a hardcoded mapping.
Please use blow script and also refer screen shot added:
If my answer solves your problem, please mark it as the correct answer.