cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
omi18
Post Partisan
Post Partisan

Collection Table

Hello,

 

I have a gallery, a checkbox for each gallery record, and a button to trigger the flow. I'm trying to download the selected record from the gallery. I have the below code set up on the select property of the button: 

Set(varURL,BroadcastV2.Run(JSON(TobeSent,JSONFormat.IncludeBinaryData)).fileurl)

with this flow runs successfully but it only records a single record from the gallery. 

 

omi18_0-1646335524936.png

 

Basically, I'm trying to export data from power apps to excel. 

 

Any suggestion?

 

Thanks,

Omi

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @omi18 

 

If you want to send only the row then

Set(varURL,BroadcastV2.Run(JSON(ThisItem)).fileurl)

 

If you want to send as allitems in the gallery then

ForAll(
    Gallery8.AllItems As Source,
    Collect(
        col_Items,
        {
            Checkout: Source.'Checked out',
            Description: Source.Description
        }
    )
);

Set(varURL,BroadcastV2.Run(JSON(col_Items)).fileurl)

 

Please let me know if I miss anything.

 


Thanks, Stalin
Blog - Learn To Illuminate Blog
YouTube - Learn To Illuminate Videos

 

View solution in original post

1 REPLY 1
StalinPonnusamy
Super User
Super User

Hi @omi18 

 

If you want to send only the row then

Set(varURL,BroadcastV2.Run(JSON(ThisItem)).fileurl)

 

If you want to send as allitems in the gallery then

ForAll(
    Gallery8.AllItems As Source,
    Collect(
        col_Items,
        {
            Checkout: Source.'Checked out',
            Description: Source.Description
        }
    )
);

Set(varURL,BroadcastV2.Run(JSON(col_Items)).fileurl)

 

Please let me know if I miss anything.

 


Thanks, Stalin
Blog - Learn To Illuminate Blog
YouTube - Learn To Illuminate Videos

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,735)