Creation of RITMs for existing request through Flow Designer and carry forward RITM variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2025 02:54 AM
Hi All, @asifnoor @Ankur Bawiskar
I need to create RITMs for an existing request using Flow Designer while ensuring that RITM variables are carried forward.
When the first RITM is closed complete, a second RITM should be created, inheriting the variables from the first one. I achieved this by creating an Action in Flow Designer. However, the issue arises when the second RITM is closed complete—it automatically triggers the catalog item's flow, creating a third RITM and causing an infinite loop.
Even though I used setWorkflow(false); in the action, the catalog item’s flow still executes when the second RITM is closed, leading to continuous RITM creation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2025 02:58 AM
Hi @Dileep Prasath , Just a suggestion - before creating the second RITM in the flow, can you look up records in sc_req_item table where request is the parent request and in the next step add an if condition to check whether the count of records returned from the 'Look Up Records' action is less than 2, then only create the next RITM. But I afraid it will trigger the flow again but it will evaluate 'false' at this step for the second RITM.