I would love the ability to terminate flow with an action.
@avt: it's already there:
However, it doesn't work in loops, where it usually need to be.
hmm, do you mean "Do until" or "add and aply to each" ?
I'm building a subsequent approval flow, the list of approvers is set by a user and can contain an unlimited amount of approvers.
So, I thought that I may declare a variable like "Skip" and set it to "Yes" if someone will respond "Reject", while do-while could monitor this variable in a parallel flow branch.
Anyway, I built another solution to skip further approvers if the one responded Reject, without using of Terminate.
Could you share what solution you used to get this done?
1. Declare a variable like 'Approved' which is set by default to 'Approved'
2. In the approval loop, first check if this variable is set to 'Approved'.
3. In 'If Yes' branch, build your approval business logic and check response, if someone rejected then set 'Approved' variable to 'Rejected'.
4. In 'If No' branch, do nothing - it will literally skip all further approvers if any of the approvers rejected once.
Refer to the picture below, I skipped all the business logic and left only critical parts.
Hope it helps.
This is not the best solution although as it will iterate through all approvers anyway, but it works.
Hope it helps, let me know if any questions you have.
This is much needed to control approval flows. Just letting them time out is not a good approach
@Pavel_Sheludkov How have you done that "send email with options"? I can see that in your screenshot...
There is an action called 'Send email with options' within the Office 365 Outlook connector.
Great - thanks. Haven't found that thing before...