Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How can I create an RITM inside an RITM Flow?

symonflores_23
Tera Guru

I have a business requirement:

 

I will create a Service Request catalog item that allows customers to add their order numbers.

In the MRVS table, it would look like this:

 

Order01
Order02
Order03

 

Our fulfiller wants to update the details per order number, so I created one SCTASK per order number and added variables that are only visible to the SCTASKs.

 

However, I encountered an issue because the variables are created through the RITM. As a result, the variable values are shared across all SCTASKs. 

 

Another option I considered was creating the variables directly on the SCTASK table. However, I was advised not to add more custom variables directly to our tables, especially since I would be adding 10+ new variables for the fulfiller.

 

As a workaround, I plan to create a child RITM per order number and then create an SCTASK for each child RITM.

 

image.jpg
How can I implement this in Flow Designer?

 

If I duplicate the flow, how can I limit the RITM creation to prevent an infinite loop of child RITMs?

Is there a more efficient way to create the RITM and attach it as a child RITM to the parent?

1 REPLY 1

Ankur Bawiskar
Tera Patron

@symonflores_23 

You can iterate that MRVS and for each row use "Submit Catalog Item Request" flow action which will create a separate REQ and RITM

see how to iterate MRVS gif I attached and enhance it

You can discuss with customer what to do for those newly create RITMs and should they be child of earlier RITM

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader