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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Create of excel sheets with Pivot Table from dataverse Table in power apps

(1) ShareShare
ReportReport
Posted on by 2
Hi All, 

I have a requirement where I have 3 different fetchxml queries of same table, on button click on Main grid it should create that data in 3 different sheets of the same excel file along with pivot table and download that file.
I have used using power automate "HTTP trigger and Respond to power app flow". its giving runtime error as the file has around 300 records. 
I have used Plugin its giving the "ClosedXML" error.

Any inputs?
I have the same question (0)
  • Suggested answer
    Muhammad Shahzad Shafique Profile Picture
    2,375 Most Valuable Professional on at
    Power Automate + Excel Online (Business) connector + Office Script
    1. Excel template
      – In OneDrive or SharePoint, create a workbook with three empty sheets (e.g. “Stage 1”, “Stage 2”, “Stage 3”) and define a proper Excel Table on each (Table1, Table2, Table3).
    2. Flow trigger
      – Use the “Power Apps” trigger in Power Automate or an HTTP trigger if you prefer to call it yourself.
    3. Fetch your data
    4. List rows (Dataverse) 
    5.   – FetchXML #1 → apply to Table1 
    6.   – FetchXML #2 → apply to Table2 
    7.   – FetchXML #3 → apply to Table3 
    – In each loop, use “Add a row into a table” (Excel Online (Business)) to inject the Dataverse fields you need (including modifiedby and modifiedon).
    1. Create Pivot
      – Add a “Run script” (Excel Online (Business)) action that calls a small Office Script you write once to insert a pivot table per sheet (or a consolidated pivot if you prefer).
    2. Return/download
      – “Get file content” (OneDrive) → “Respond to Power Apps or flow” with a file attachment.
    Pros: No size limits up to ~250 MB; runs entirely in the cloud; uses only supported connectors.

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 Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 156

#2
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans