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

Notifications

Announcements

No record found.

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,373 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Pallavi Phade Profile Picture

Pallavi Phade 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans