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 / Power Query Refresh no...
Power Automate
Unanswered

Power Query Refresh not working

(0) ShareShare
ReportReport
Posted on by 41

I have an excel document using power query. I have a power automate flow that is supposed to refresh all and then email me the resulting workbook.

I accomplished this by making an excel script that refreshes all and then using power automate to run that script.

lizzyC_0-1699888460206.png

 

When the the flow actually runs, though, the workbook was not actually refreshed, despite indicating that each section ran successfully. Is there something else I should do?

I'm happy to switch to Power BI if that's the best bet, but this seems like this should work, so I'm not sure why it's not.

Categories:
I have the same question (0)
  • Geeks_D Profile Picture
    1,169 on at

    Hi, 
    Could you share the script syntax  for refresh ?

  • lizzyC Profile Picture
    41 on at

     

    function main(workbook: ExcelScript.Workbook) {
     workbook.refreshAllDataConnections();
    }

     

  • GeoffRen Profile Picture
    Microsoft Employee on at

    Unfortunately this api is not fully supported yet Troubleshoot Office Scripts running in Power Automate - Office Scripts | Microsoft Learn

  • lizzyC Profile Picture
    41 on at

    Thank you! I'll switch over to Power BI, then.

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard