cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

Anyone have a way to execute 2 (or more) Flows sequentially from a single PowerApps button and other squirrelly PowerApps Editor behavior.

The PowerApps editor for executing (Run) flows from an OnSelect property of a PowerApps button is very squirrely.  If I have text in the field before I choose Action-->PowerAutomate-->Select a Flow, it completely blows the text away (e.g. if I want to output of a Flow to populate a collection as would happen on a SQL call).  I find myself having to cut and paste the "pre" and "post" text in repeatedly.  Is this really the way this is supposed to work?

 

This leads to the crux of this post.  I would like to have a single Button press trigger the calling/execution of two (or more) separate Flows sequentially (or in parallel, if possible).  Given the current behavior of the PowerApps editor, this is impossible as the addition of the second Flow blows away the first Flow call.  I am coming to the conclusion that while you can easily execute multiple steps in an OnSelect property with the use of the ";", adding a 2nd or 3rd Flow is not possible.  Is this right?  Am I missing something?

using

And assuming I am right about this not being supported, does anyone have a solution like having the OnSelect button "Press the Button" of another Button.  Then I could put the second Flow call in a second invisible Button and have it called by the first one.  

 

Thoughts or experience with this problem.  Can't find anything really close.  There is one post about using a button to call one or the other Flow but nothing where I want both Flows to be executed.  I am trying to figure out how to adapt the post to my situation but not seeing that clearly.

 

Thanks,

Mark

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Anyone have a way to execute 2 (or more) Flows sequentially from a single PowerApps button and other squirrelly PowerApps Editor behavior.

Hi @markslosberg,

 

I totally agree it is little annoying triggering flow in PowerApps, Yes as you rightly said it will clear out the test existed previously when you click on flow to add onSelect of the button property. I strongly believe product team is working on that
Work around:
copy and paste all the code as part of OnSelect to a notepad  and then add the flow and replace the text / formulas back to onSelect property. or other best way is start typing in the flow name and PowerApp will show you the flow name right below (as part of intelligence) and then say <<flowname>>.Run();

coming to adding/running more than one flow we can 100% do it with the above workaround start type-in the flow1name.Run(); 
flow2name.Run(); 
if you want to run the same flows parallel? just rap the same code as 

Concurrent(
SendMessage.Run(),
SendEmail.Run())

 see the working model below:
RunFlows.gif

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

 

Regards,

Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: Anyone have a way to execute 2 (or more) Flows sequentially from a single PowerApps button and other squirrelly PowerApps Editor behavior.

Hi @markslosberg,

 

I totally agree it is little annoying triggering flow in PowerApps, Yes as you rightly said it will clear out the test existed previously when you click on flow to add onSelect of the button property. I strongly believe product team is working on that
Work around:
copy and paste all the code as part of OnSelect to a notepad  and then add the flow and replace the text / formulas back to onSelect property. or other best way is start typing in the flow name and PowerApp will show you the flow name right below (as part of intelligence) and then say <<flowname>>.Run();

coming to adding/running more than one flow we can 100% do it with the above workaround start type-in the flow1name.Run(); 
flow2name.Run(); 
if you want to run the same flows parallel? just rap the same code as 

Concurrent(
SendMessage.Run(),
SendEmail.Run())

 see the working model below:
RunFlows.gif

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

 

Regards,

Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

Highlighted
Resolver I
Resolver I

Re: Anyone have a way to execute 2 (or more) Flows sequentially from a single PowerApps button and other squirrelly PowerApps Editor behavior.

Thanks. I did figure out how to call a button using the Select(button) command which was my first successful workaround as I created a hidden button with the 2nd Flow call.
 
I will give this method a try. I like it.

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,849)