How can I use a single workflow for multiple catalog items with slight modifications for each item?

Astik Thombare
Tera Sage

Hi Community,

 

I have a quick question.

 

If you want to use a single workflow for multiple catalog items with slight modifications specific to each item, how would you approach this? What solutions would you suggest for incorporating these modifications efficiently?

1 ACCEPTED SOLUTION

MackI
Kilo Sage

hi @Astik Thombare 

 

When you have multiple catalog items that require similar but not identical workflows, it's inefficient to create a separate workflow for each one. 

 

A more elegant and scalable solution is to design a single workflow that leverages a decision table to handle the variations between the items. 

Design a decision table with inputs like catalog item name and common variables, and outputs like approval group and task assignment.

 

Create rules for each variation, and implement the workflow in Flow Designer using a Decision action and subsequent actions based on the decision outputs. Remember to handle missing variables and dynamically build task descriptions.

 

I want to share one of my pdf article about this by using 7 catalogue item in a single workflow in flow designer.

 

Please see the attached PDF document for your reference in this reply.

 

If you like this opinion and your problem is resolved after reviewing and applying it. Please kindly mark this your best answer‌( Accepted Solution) 🌠‌ OR  mark it  Helpful ‌‌ if you think that you get some insight from this content relevant to your problem and help me to contribute more to this community

MackI | ServiceNow Developer | 2 *Mainline Certification | LinkedIn Top IT Operation Voice 2023 | Sydney,Australia

View solution in original post

5 REPLIES 5

Runjay Patel
Giga Sage

Hi @Astik Thombare ,

 

You can create one generic sub flow which you can use in multiple catalog item and call it from each catalog item. 

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

Hi @Runjay Patel ,

 

But what if each catalog item has some slight modification in process then  ?

 

Thanks,
Astik

Then you have to make a copy of existing flow and do the changes , there is no harm keeping separate flow for each catalog item.

It may depend on what the "slight modifications" are. If the flow generates a RITM / SCTASK that can be assigned directly to the assignment group identified in the item as the Fulfillment group and if there are just different variables on each item, then as long as you mark the variables as global=true, they will be brought over to each RITM and/or SCTASK generated in the flow. But if you need to have logic in the flow to generate tasks or approvals to different assignment groups based on answers given in the variables, then it's probably best to have a separate flow.