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

 

2 REPLIES 2

M Iftikhar
Mega Sage

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

 

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