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!
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.
@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?
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.
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional