cancel
Showing results for 
Search instead for 
Did you mean: 

Flows trigger other flows

This feature would be fantastic for creating a modular environment. The passing of parameters between flows and essentially creating the ability to make functions would make flows an irreplacable asset to my work.

Status: Started

We are now working on this and will release it in the next couple of months.

Comments
Level: Powered On

Thanks @Apruzz.  Very kind of you to post this helpful tip.  I will have to try your technique.  Since Flow is targeted at non coders, it should have a simple action call "Launch Other Flow" or "Terminate other flow" ultimately.

Anonymous
Not applicable

I know, but you'll see it's almost that simple.

Level: Powered On

Thanks to those above for the pointer to the "When an http request is received" action approach.  Far less painful than I expected, and saved by bacon.

 

There's an issue whereby the "Apply to each loop" concurrency / parallelism settings doesn't work with "Send an Email with options" actions inside the loop i.e. it ignores the parallel  consurrent setting and does it sequential.   Which is no use for an approvals requirement.  Using "When an http request is received" and refacgoring the Flow into Flows sorted that.

 

Didn't stop my customer asking why a product a decade in the making and a mid-life re-write (SP workflow -> Flow) still can't do a loop with parallelelism / concurrency with an approvals email inside it out-of-the-box.

 

But hey-ho, it was ever thus where Redmond is concerned.

Anonymous
Not applicable

Lozzie,

I haven't encountered the bug you mentioned, but I'm curious about it. When you say "Send e-mail with options" won't run concurrently in a loop, why is that such an issue? Isn't it just a few seconds' delay for the loop to run sequentially? Do you mean that the second iteration doesn't run until someone has selected an option in the e-mail from the first iteration? I've managed to send e-mails with options all at once - not perfectly simultaneously, but at roughtly the same time from inside a loop. Can you explain the issue further?

Level: Powered On

When I put a "Send email with options" action inside a "Apply to each" loop (each iteration has an "approver" from an array, this is a parallel approval workflow) with the loop concurrency enabled, the emails are only sent sequentially i.e. the n+1th is only sent when someone responds to the nth.  The approval I wanted was to be parallel i.e. everyone gets the email immediately and can respond in theor own time and in any order.

 

This is the issue exactly ...

 

https://powerusers.microsoft.com/t5/I-Found-A-Bug/Apply-for-each-Parallel-for-approvals/td-p/56881 

 

You can see my "Redmond Rant" comment at the end there.

 

Then I found this one ...

 

https://powerusers.microsoft.com/t5/Flow-Ideas/Apply-to-each-for-Approvals-send-out-many-approvals-i...

 

MS purport to have fixed it in that one, but it ain't.  Not always.  Maybe sometimes.  It was working, then it didn't.

 

So you can see my super-charged "Redmond Rant" comment on the end there too.

 

Then I found this thread, and tried out the "When an http request is received" action approach expecting hell on earth, but it was graceful and uncomplicated.