cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AmandaW
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
ScottShearer
Super User
Super User

@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
ScottShearer
Super User
Super User

@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

@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?

@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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,597)