How can I create an RITM inside an RITM Flow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Ankur,
How do I add wait conditions per RITM? The wait conditions should be independent to other RITMs created in the for loop.
Basically, I want to create the RITMs first, then all RITMs have their own behaviors. However, I cannot see how this would work inside the for loop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
each RITM you create using "Submit Catalog Item Request" would have it's own flow attached
what's required extra?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Based on the image attached in my earlier comments, if I add a wait condition for one RITM in the for loop, this would hinder the creation of other RITMs.
Or did you mean that there is a separate flow for the catalog item for the MRVS and RITM generation, and another flow for the RITM behavior?
