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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to use data from s...
Power Automate
Unanswered

How to use data from sql server to build a excel?

(0) ShareShare
ReportReport
Posted on by

Hi All,

I have made an automate to get data from sql server, and it returns a table. Then how can I use this table to build a excel and put it on the sharepoint?

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,551 Super User 2026 Season 1 on at

    Do you want to start from an Excel template copy, or from scratch (creating a blank Excel file and creating a table) ?

  • v-yueyun-msft Profile Picture
    on at

    Hi , @Anonymous 

    According to your description, you have got an array from sql server in Power Automate.

    If you want to export to Excel dynamically, you can follow this video to create the flow. You need first create a blank Template Excel file.
    Power Automate Export to Excel | Dynamically create Table, Columns & Add Rows to Excel | Send Email - YouTube

     

    If this reply can help you , you can click mark this reply as solution, thanks in advance!


    Best Regards,

    Yueyun Zhang

  • Community Power Platform Member Profile Picture
    on at

    Both are acceptable, and I also want to rename the sheet name (A fixed name).

    what I want to do is, each time use this automate, I can get a new excel file in sharepoint.

    Sum up, I want to get data from sql server and put them into an excel in sharepoint so that I can download it

  • Community Power Platform Member Profile Picture
    on at

    Both are acceptable, and I also want to rename the sheet name (A fixed name).

    what I want to do is, each time use this automate, I can get a new excel file in sharepoint.

    Sum up, I want to get data from sql server and put them into an excel in sharepoint so that I can download it

  • lbendlin Profile Picture
    8,551 Super User 2026 Season 1 on at

    my recommendation would be to use the Graph API. 

     

    Write data to an Excel workbook - Microsoft Graph | Microsoft Learn

  • v-yueyun-msft Profile Picture
    on at

    Hi , @Anonymous 

    If you want to rename the created file name , you can just modify the fileName in the create file action:

    vyueyunmsft_0-1704337728536.png

    If you want to rename the worksheet name , you may need to use the office script, for this , you can refer to :
    Solved: Rename excel worksheet from script - Power Platform Community (microsoft.com)

     

    If this reply can help you , you can click mark this reply as solution, thanks in advance!


    Best Regards,

    Yueyun Zhang

     

  • Community Power Platform Member Profile Picture
    on at

    In fact, I need to click a button in a powerapp to download data from sql server, did the Graph API work in the powerapp?

  • lbendlin Profile Picture
    8,551 Super User 2026 Season 1 on at

    The Graph API is for the "write to Excel"  part.  To download data from an SQL source you can use a standard connector.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 307 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 269 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 115 Super User 2026 Season 1

Last 30 days Overall leaderboard