cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

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
Highlighted
Super User III
Super User III

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
Highlighted
Super User III
Super User III

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

Highlighted
Regular Visitor

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?

Highlighted
Super User III
Super User III

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Users online (7,365)