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 / Export to excel of SQL...
Power Apps
Answered

Export to excel of SQL server data in canvas app

(0) ShareShare
ReportReport
Posted on by 30

Hi All,

 

I have customized the canvas app by Azure SQL data connection. I would like to export the data which are displaying in the data table. How to achieve it. For export to excel, I am using Excel Online of Onedrive business. But it has some limitation of file size. Is any other way to create the export to excel from Canvas App. Please suggest the solution.

Categories:
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Saratha30_M ,

    Do you want to export data from SQL to Excel by using powerapps?

    Is the limit of Excel 2000 records?

    If so, that should be caused by delegation problem.

    However, the functions about updating are all not delegateable in powerapps.

    So I suggest you an alternative way:
    Import data from SQL to CDS. Then you could export data of CDS. The exported file is a compressed folder with csv file.

    In this solution, you will not have the limit of 2000 records.

    The steps should be like:

    1)In CDS, choose get data:
    210.PNG

     

    2)choose Azure SQL

    2102.PNG

     Import data.

    3)After you have imported data to CDS successfully, export data.

    Choose export data.

    2103.PNG

     

    Choose the entity that you want to export and then click "export“.

    After you've exported successfully, click "download....".

    Then the download file is a compressed folder with csv file like this:

    2104.PNG

     

    This is a excel file with the data of your SQL.

    You could modify it to the format that you want and then upload it to one drive.

     

     

    Best regards,

     

  • Saratha Profile Picture
    30 on at

    Hi @v-yutliu-msft,

     

    Thanks for your suggestion. I am not using CDS database.  Instead of CDS database, directly connecting to SQL database for data manipulation. So I can't use CDS export data feature for export to excel.

     

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Saratha30_M ,

    Could you tell me how many records in the data table that you want to update to the excel?

    Since powerapps has delegation limit, you could only update at most 2000 records in one time.

    So here are two solutions

    1)save data in data table every two thousand records in one collection

    Then update the collections data to the excel one by one

    Do not forget to change the non-delegateable limit to 2000.

    delegation.jpg

     

    2)import sql data to cds (the way that I posted)

    When you import data, you could use sql query to filter data to import.

    Filter data to the data in the data table.

    2179.PNG

     

    Then export the cds entity to cvs file.

    This solution does not have excel record number limit.

     

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard