cancel
Showing results for 
Search instead for 
Did you mean: 

Terminate/end flow

I would love the ability to terminate flow with an action.

Status: New
Comments
Laskewitz
MVP

@avt: it's already there:

 

terminate.png

Anonymous
Not applicable

However, it doesn't work in loops, where it usually need to be.

avt
Kudo Collector
Kudo Collector

hmm, do you mean "Do until" or "add and aply to each" ?

Anonymous
Not applicable

Both.

 

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.

eddysun
New Member

Pavel,

Could you share what solution you used to get this done?

Anonymous
Not applicable

Hi @eddysun,

 

Sure:

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. 
Skip approver.PNG

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.

 

Cheers.

ErichH
Kudo Kingpin

This is much needed to control approval flows. Just letting them time out is not a good approach 

luju
Regular Visitor

@Anonymous How have you done that "send email with options"? I can see that in your screenshot...

Anonymous
Not applicable

Hi @luju 

 

There is an action called 'Send email with options' within the Office 365 Outlook connector. 

 

Cheers

luju
Regular Visitor

@Anonymous 

Great - thanks. Haven't found that thing before...