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 Automate / Refresh excel pivot ta...
Power Automate
Answered

Refresh excel pivot table from power automate don`t work

(0) ShareShare
ReportReport
Posted on by

Hi

I need to create a flow that refresh all the pivot tables in an excel file. I have created an office script with the statement "refreshAllDataConnections" but it does nothing.
I have found this link where it indicates that it is not supported

https://docs.microsoft.com/en-us/office/dev/scripts/testing/power-automate-troubleshooting#data-refresh-not-supported-in-power-automate


Could someone help me to know if this task is impossible to do from power automate?

Thank you

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @egmarcote :
    I think @Paulburn 's solution in the thread named "Add in Excel Flow the ability to refresh all pivottables and links in an Excel Spreadsheet file" will help you a lot:

    vbofengmsft_0-1644976518892.png

     

    Best Regards,

    Bof

  • LeoU1 Profile Picture
    4 on at

    Still not working for me; any help PLEASE?

  • wheatbarley36 Profile Picture
    14 on at

    This is not refreshing my pivot tables. Did you find something that worked?

  • JonnieM Profile Picture
    2 on at

    hi wheatbarley36
    Currently, although the commands exist in OfficeScript and can be called via PowerAutomate/Flow/Logic Apps etc, they do not in fact do anything...
    One possible solution could be PowerAutomate for Desktop, where a PC (or potentially a VM in Azure) could open Excel as a Desktop App and do the refreshing. A true step back to the 1990's ....
    https://learn.microsoft.com/en-us/office/dev/scripts/testing/power-automate-troubleshooting?source=recommendations#script-methods-that-do-nothing-when-run-in-power-automate-flows

    Script methods that do nothing when run in Power Automate flows

    The following methods do nothing in a script when called through Power Automate. They still return successfully and don't throw any errors.

    Class Method
    PivotTablerefresh
    WorkbookrefreshAllDataConnections
    WorkbookrefreshAllPivotTables
    WorksheetrefreshAllPivotTables
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    So frustrating trying to use Power Automate in cloud to scrape and transform data from the web on a scheduled unattended basis.  I have a Power Query in Excel that works, but can't find a method of executing from the cloud.  So many frustrations and dead ends on the way - like a script record button that only shows in online version of Excel, but is so difficult to search for the reason it was not showing in full client.  On and on, and now this latest... actions that can be coded but don't work, and throw no error.  Ugh.

  • Aritrade Profile Picture
    6 on at

    Workbook.refreshallpivottables() will only work if you make the pivot table solely in the excel online. Power automate can load the data into different tables without opening and pivots can be refreshed using this script 

  • Aritrade Profile Picture
    6 on at

    Power query loading data to data model can’t be refreshed in excel web till now. You can use power BI to refresh the data using scheduled refresh or power automate triggers. Them using power automate can load the data in excel range or tables.

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard