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 / Launch query update in...
Power Automate
Answered

Launch query update in Excel using Script Office and Power Automate

(0) ShareShare
ReportReport
Posted on by 9

Dear all,

A- Target
The goal is to trigger an office script using power automate to refresh a querry in excel.

Lonelyx_3-1707411540625.png


B- Component
1- We have an excel file that can be sourced from another excel file with Power Query

Lonelyx_0-1707409370406.png

 

2 - We have an Office script that updates the querry

Lonelyx_1-1707410182593.png

3- We have created a power automate flow that launches the script

Lonelyx_2-1707410258762.png
C- Problem

When I execute the script manually, everything works correctly.

But when I run it with Power Automate nothing happens. The data doesn't refresh. (The flow is a success)

I tried with the excel workbook open and with the workbook closed.

 

I'm posting this here to thank you for taking the time to understand my problem.
If you think you can help me please don't hesitate.

Have a great day,

Best Regards,

Categories:
I have the same question (0)
  • Verified answer
    rzaneti Profile Picture
    4,483 Super User 2026 Season 1 on at

    Hi @Lonelyx ,

     

    It looks like this is a limitation from Power Automate. According to the Official Docs, it is not possible to refresh most part of the data sources with Office Scripts via Power Automate:

    rzaneti_0-1707435373544.png

     

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

     

    Let me know if you need any additional help!

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

    http://digitalmill.net/ 
    https://www.linkedin.com/in/raphael-haus-zaneti/ 

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 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard