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

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,241 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard