web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Custom Command to send...
Power Apps
Answered

Custom Command to send selected records (multiple) to an Automate flow (Model Driven App)

(0) ShareShare
ReportReport
Posted on by 193

Hello,

 

My goal is to select multiple records (from a subgrid or from the read only table) and have a button that will send the data of every selected record as a single array to an automate flow. I have a flow set up that with read a data input and print labels using the information, and I do not want to trigger the flow individually for each record.

 

In a canvas app I would have used as a collection and run an automate flow by passing the record info as a parameter. I can't do this with Power Fx in a Model Driven app.

 

Is there a way to do this, either with Power Fx or Javascript (which I am not as well-versed in)?

Categories:
I have the same question (0)
  • schollguin Profile Picture
    19 on at

    Hi there.  Was curious if you found an elegant solution to this?  Looking for a way to send a single payload of selected records and trigger a flow once for the group of selected records.   thanks for any insight.

     

  • Verified answer
    CAH2035 Profile Picture
    193 on at

    Hi @schollguin 

    I wouldn't call it 'elegant' but I ended up making a custom page, which acts as a canvas app so I could use the Power Fx functions I needed.

    • Created custom ribbon command for my subgrid which used javascript to pass a list of the selected records IDs as a parameter, and opened my custom page in a dialog window using the navigateto API method
    • In my custom page canvas app, I had to figure out how to use the record parameter, this article helped me out a lot
    • I used a gallery to show the records and pull through all of their data that I needed to print labels (I had to make sure that even if I didn't want a specific field so show in my gallery, I had to put a label with that data in it and hide it, otherwise the collect function won't pull it in).
    • I put a button for "Print" and used it to call my Power Automate flow, passing the collection as a JSON using the JSON function as a parameter that is defined in the flow.

    This was the only way I knew how to do it, calling the flow from within a canvas app, but it does require some knowledge will javascript and making new command bar buttons.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard