cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AmandaW
Level: Powered On

Does infopath work with flow?

So i have a flow that works just fine to approve/reject a new list item in SharePoint.  If the approver doesn't approve or reject in a specified amount of time a reminder email is generated.  I have not found a way to embed the approval into a reminder email so I'm wondering if I can hide the approve/reject buttons in the infopath form and when the approver clicks the link to item to approve/reject they will be there and then continue my flow? If not is there any other way to get the flow to terminate after the button is clicked from within the form? I don't want the reminder emails to continue to be sent if the item has been approved or rejected and the list item updated directly from infopath. thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Does infopath work with flow?

@AmandaW 

First, one technique that I have used in approval reminder emails is to include a link to https://flow.microsoft.com in the email.  If there are outstanding items for an approver, they will show on the default Flow page.

Also, when I do reminder emails, I put the reminder email actions in a parallel branch.  I also use a boolean variable that I initialize to false.  I set the variable to true immediately after my approval action.  Before I send the reminder email, I check the status of the variable - if it is true, then I don't send the email.  Finally, my reminder email actions are in a do until loop that runs until the variable is true.

If you use this concept, be sure to click on change limits and change the max duration of the do until loop - it defaults to just one hour.

The bottom line is that there is no need for InfoPath.

ReminderEmail.jpg

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Does infopath work with flow?

@AmandaW 

First, one technique that I have used in approval reminder emails is to include a link to https://flow.microsoft.com in the email.  If there are outstanding items for an approver, they will show on the default Flow page.

Also, when I do reminder emails, I put the reminder email actions in a parallel branch.  I also use a boolean variable that I initialize to false.  I set the variable to true immediately after my approval action.  Before I send the reminder email, I check the status of the variable - if it is true, then I don't send the email.  Finally, my reminder email actions are in a do until loop that runs until the variable is true.

If you use this concept, be sure to click on change limits and change the max duration of the do until loop - it defaults to just one hour.

The bottom line is that there is no need for InfoPath.

ReminderEmail.jpg

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

AmandaW
Level: Powered On

Re: Does infopath work with flow?

@ScottShearer Thank you so much , your response was most helpful.  Just out of curiousity, if one did not put the variable in there and just had the approval/rejection done from the https://flow.microsoft.com/ page,  would the flow terminate if I put a terminate upon success action in my flow?

Super User
Super User

Re: Does infopath work with flow?

@AmandaW 

Yes, placing a terminate action after the approval action would very definitely terminate the Flow and stop any additional reminder emails.  I sometimes use this technique.  If you use a terminate action, make sure to set it to "success" so it doesn't look like an error was generated.

I presented the solution using the variable to account for situations where there may be additional work to be done in the Flow after the approval takes place.  If there is more work for Flow to do after the approval, then using a terminate action is not an option.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (2,791)