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

Community site session details

Session Id : AN0n22mO/IQHxYjkjUN2hJ
Power Apps - Building Power Apps
Unanswered

Export to excel records from a gallery

Like (0) ShareShare
ReportReport
Posted on 21 Jan 2022 23:54:57 by 62

I have this gallery with a button to export the records to excel.

wilsoncastro_0-1642809174868.png

This is the code in the button

wilsoncastro_1-1642809194818.png

In the button I call this flow

wilsoncastro_2-1642809210085.png

 

wilsoncastro_4-1642809237680.png

 

wilsoncastro_5-1642809246978.png

 

The result I get is this file

wilsoncastro_6-1642809260515.png

 

How can I improve the presentation of the file. I want it to look like this

wilsoncastro_7-1642809274948.png

 

I have the same question (0)
  • Anonymous_Hippo Profile Picture
    1,247 Super User 2024 Season 1 on 24 Jan 2022 at 06:46:37
    Re: Export to excel records from a gallery

    Hello @wilsoncastro ,

     

    I would like to know more about your data source :-

    1. Are you displaying a document library or a sharepoint list ?
    2. Are you filtering your gallery data source ? In case you are filtering the data source then there is no easy way of doing things (Unfortunately)

    Incase you are filtering the data source and you want to format the file to make it look pretty. Then i would recommend using Office script. And running the office script to add a table + do cosmetics like you want by embedding it in your old flow 

    Anonymous_Hippo_0-1643006498550.png

    Also some heads up :-

    Using office script may sound difficult since you need to know little bit of Typescript. But actually it is quite easy. Incase you are lost i recommend using the record script option to learn the basics of what you want to do.

     

    Reference document:-

    https://docs.microsoft.com/en-us/javascript/api/office-scripts/excelscript/excelscript.table?view=office-scripts

     

    Cheers

  • wilsoncastro Profile Picture
    62 on 24 Jan 2022 at 00:44:58
    Re: Export to excel records from a gallery

    @Anonymous_Hippo 

    Thank you very much for your help, but how do I download only the gallery logs? Not the complete list.

    wilsoncastro_0-1642985061045.png

     

     

     

  • Anonymous_Hippo Profile Picture
    1,247 Super User 2024 Season 1 on 23 Jan 2022 at 04:38:11
    Re: Export to excel records from a gallery

    Hello @wilsoncastro,

     

    There is an easier solution.

     

    Just use the following link (Add your values as mentioned below)

     

    Launch("https://Your Sharepoint Domain name/sites/your sharepoint site name/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List={Your sharepoint list ID}&View={your sharepoint view ID}&CacheControl=1") 

     

    In case you do not know what your sharepoint list id and view id are then check out this link

    https://www.surfpointtech.com/2013/10/14/sharepoint-list-id-and-view-id-calculator/

     

    and Bam !! simple solution

     

    Hope it helps someone

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete