cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cbeene
Helper I
Helper I

Restart a "When a new item is created" in SharePoint with a button

The name says it all.  We have a "When a new item is created" triggered flow for a SharePoint list.  Sometimes we will need to restart this flow on items that already exist in said list.

I am trying to avoid using the "and when items are modified" trigger while using a helper column attached to a button and a condition designed to kill or continue a flow.  I find this method to be a clunky balancing act at times.  I want to be able to press a button in the PowerApp custom form and have it directly trigger a second start of the flow in question.  Any idea's?

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @Cbeene ,

 

Sorry for the requirement to restart a flow with trigger "When an item is created" with a button from PowerApps couldn't be achieved in Microsoft flow currently.

You need to understand the flow would trigger "When an item is created" would only run when an item is created.

 

Best regards,

Alice   

Community Support Team _ Alice Zhang
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

6 REPLIES 6
LinkeD365
Advocate V
Advocate V

Hey @Cbeene 

 

You can certainly create a power app for the list and a button on the form which can trigger a Flow. Add the button to the form, select Action and choose Power Automate.

 

You can either duplicate the logic or use flow calling flow to segment the calling method (either the button or the trigger) to the actual method that is doing the work.

 

If my reply helped, consider marking it as answered. Thanks for your time in sharing your issues and helping the community

Thanks for the response @LinkeD365 .  I don't want to duplicate the code, because I don't want to have two separate flows that have to be maintained.  Can you expand a bit on "use flow calling flow to segment the calling method (either the button or the trigger) to the actual method that is doing the work."  I'm not sure what that means and a Google search didn't help.

v-alzhan-msft
Community Support
Community Support

Hi @Cbeene ,

 

Sorry for the requirement to restart a flow with trigger "When an item is created" with a button from PowerApps couldn't be achieved in Microsoft flow currently.

You need to understand the flow would trigger "When an item is created" would only run when an item is created.

 

Best regards,

Alice   

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

hey @Cbeene 

This blog piece explains the concept perfectly.

https://flow.microsoft.com/en-us/blog/october-updates-for-microsoft-flow/

 

So create a child flow with most of your logic in, pass in a parameter of the SharePoint item into the child flow.

 

Call this flow from 2 places, one a flow with a trigger and one a flow from a button which you connect to your form

 

If my reply helped, consider marking it as answered. Thanks for your time in sharing your issues and helping the community

Thank you @LinkeD365 for the info.  In the process of my Googling around I found that you can create conditions for triggers, which is great.  I will use the "and when modified" trigger with a helper column method but include a Condition on the trigger to limit my unneeded flow activity.

 

Thanks for you information.  I still learned something new.

Sad, since in SharePoint Designer you could trigger a flow that was an On Creation if it got stuck or errored. I have two items that failed to run because of a connection issue. I have fixed the connection issue but now need the workflow to run. Now I'm screwed.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,989)