cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How can I change flow trigger without losing the following actions

I have created a long flow, now I realize I have chosen the wrong trigger, if I delete the current trigger, I may lose the following actions in the flow. How can change the trigger type without losing following steps?

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @Anonymous ,

 

If the following action uses the output of the trigger body, then when you delete the trigger, the configured content will be removed.

You could consider using a workaround that you can create a copy of Flow. Whenever I need to change the complex configuration of a Flow, I often click Save as to create a copy of the Flow first, which will help restore the configuration of the previous version.

https://flow.microsoft.com/en-us/blog/make-a-copy/

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
LRVinNC
Resident Rockstar
Resident Rockstar

It depends on which trigger you are using.  If your trigger does not have any outputs used by other actions in your flow, you can simply right click, choose delete and remove the old trigger and then choose your new trigger.

 

If the trigger contains outputs that are being referenced later in your flow, you'll have to remove the references to those outputs in the later actions before you can remove and replace the trigger.  

LRVinNC

------------------
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
v-bacao-msft
Community Support
Community Support

 

Hi @Anonymous ,

 

If the following action uses the output of the trigger body, then when you delete the trigger, the configured content will be removed.

You could consider using a workaround that you can create a copy of Flow. Whenever I need to change the complex configuration of a Flow, I often click Save as to create a copy of the Flow first, which will help restore the configuration of the previous version.

https://flow.microsoft.com/en-us/blog/make-a-copy/

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
_MichaelVD_
New Member

I had a similar issue , I created a flow with trigger "Cognitoforms - When a new entry is created" 
but I also wanted to use the same flow for the trigger "Cognitoforms - When a new entry is updated" 

So I created a copy of my first flow deleted the trigger action and changed it to the trigger "Cognitoforms - When a new entry is updated" and saved this copy.
Opened this copy and used export > Package (.zip) to export it to my computer as a zip with json files.

 

Then I created another copy of my first flow also exported this as a Package (.zip) with json files.

 

Then I unzipped both of the zip files and opened the following file with notepad++ (or another editor) : Microsoft.Flow\flows\123456-a54e-46azr2-969a-be0470611ae4\definition.json file

 

Then I copied everything between the brackets of "triggers":{ ...... } from the definition.json file of the new trigger ("Cognitoforms - When a new entry is updated" ) to "triggers":{......} in the other file  zipped the files again of the folder with the replaced triggers content and imported that zip back into flows .

Thanks for this tip @_MichaelVD_  I faced the exact same challenge with cognitoforms and your suggestion was very helpful.

Another option which also worked for me on another flow is as follows:

 

  • Open the flow and move all the actions into a scope.
  • create a copy of the flow by using the Save as option in Microsoft power automate
  • Open the new copy of the flow on another tab and delete the scope and the trigger, then add the new trigger
  • on the original flow, click on the three dots of the scope action and select copy to my clipboard
  • paste the copied scope into the appropriate section of the new flow
  • save the new flow and test

 

 

Thank you.  This works very well.  This saved me a tremendous amount of time as my flow is very large.  It can take up to 1 minute just for my flow to show on the screen....that is how large it is.

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,986)