The CreatorCon Call for Content is officially open! Get started here.

Service Catalog Flow Re-triggered from second Flow calling the "Ask for Approval" Action.

Mark Brogna
Tera Contributor

I have created a Flow that creates one to many RITMs based on selected records in a catalog item’s list collector variable.  The reason I want RITMs is to have each RITM operate independently as it navigates its way through approvals and task assignments.  The first flow has a trigger of Service Catalog, where I clone the existing RITM for every item identified by the list collector.  Further, I create a related link between the RITM and a record in the custom table referenced in the list collector. Once these new RITMs are created, I set the original RITM to a state of “Complete Skipped.”

 

Example: from the catalog item, I select two Site records from a custom table:

MarkBrogna_0-1740451305671.png

 

Here is my Flow:

MarkBrogna_1-1740451327585.png

 

You will note this flow operating independently and correctly creates two RITMs and closed the original.

MarkBrogna_2-1740451367049.png

My Second Flow is designed for each RITM to go through its own unique instance of flow. This second flow has a trigger that starts when any record is created in the M2M table, relating the RITM to the Custom table record. However, if the first action is an “Ask for Approval” it seems to re-trigger the initial flow, thus creating more RITMs.

MarkBrogna_3-1740451396722.png

 

Once activated this is how my flow reacts by creating additional RITMs by triggering the initial flow.

MarkBrogna_4-1740451427138.png

 

Does anyone know how to stop this from happening?

1 ACCEPTED SOLUTION

As you are adding RITMs to M2M table, you can use lookup records action to verify if current RITM present in M2M table. if it exists, you can skip the remaining steps in your first flow.

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Mark Brogna 

which initial flow are you referring?

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

Swapna Abburi
Mega Sage
Mega Sage

Hi @Mark Brogna 

Is your first RITM and subsequent RITMs are all created using the same catalog item? if yes, your 1st flow is getting applied for all subsequent RITMs as well.

Mark Brogna
Tera Contributor

so, how would I prevent any RITM other than the original RITM to trigger the initial Service Catalog flow?

Hi @Mark Brogna 

Please add If condition as a first step in your initial flow to identify if the RITM is the first one or a subsequent one generated from your first flow.