Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 142

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

  • MS-22072102-0 Profile Picture
    142 on at
    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.

     

  • Verified answer
    KrishnaV Profile Picture
    5,023 on at
    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard