Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Populate assignment group based on catalog item RITM by using Flow in Flow designer

NikhilKumaK
Tera Expert

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

 

8 REPLIES 8

Community Alums
Not applicable

@NikhilKumaK ,

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:

  1. Create a Decision Table:

    • Condition column = Catalog Item

    • Result column = Assignment Group

    • Add 18 rows mapping each catalog item to its assignment group.

  2. 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.

 

Hi @Community Alums ,

 

I'm implementing by using combination of decision builder & Flow. Flow Executing only when testing via 'TEST' and updating the respective assignment group. 
Now, facing issue to get the Short Description and Description values from user entered values in portal and updating same in RITM. Because Assignment group is not working after activating the flow but during test in flow designer works fine, may be because the description fields is empty in RITM that's why the group is not updating in RITM.

@NikhilKumaK 

Did you configure your Decision Table and Publish it?

Are you sending correct inputs to it?

What outputs are you getting from Decision table?

share screenshots of config

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

@NikhilKumaK 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader