Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Unanswered

Trying to run a flow on a selection of records (model driven app)

(0) ShareShare
ReportReport
Posted on by 109
Hello.

I am struggling adding a command button to my model driven app in order to run a flow on a selection of records in the main view of an entity.

The power app designer does not propose me to attach a flow on the button, only attach a script or power fx. I would not like to use javascript and an HTTP request.

I read that I should be able select my flow if the trigger is "when a row is selected", whch is the case. I checked a lot of things, like being in the right environment, being or not in a solution, etc. And I really need to run several flows on multiple records.

It would be a pity not to be able to do such a simple thing.

Thanks if you have an idea on how I can progress on that.

Regards,
Gilles.
 
Categories:
  • yashag2255 Profile Picture
    24,607 Super User 2024 Season 1 on at
    Trying to run a flow on a selection of records (model driven app)
     
    When you use the "When a row is Selected" trigger, the flow would appear on the command bar under Flows button. It will not appear for a custom command bar button that you may have added. 
     
    To trigger a flow from a custom command bar button, there are two ways (read as workarounds)
    1. Use JavaScript
    2. Add a new field to the table that is of type choice - Yes/No. From the command bar button, you update the choice value to Yes when you want to run the flow. Create an automated flow with the When a row is added modified or deleted and configure the filter condition to run the flow when the new column value is yes. In the flow, you add all your actions and at the end add an update row action to update the column value back to False. 
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2