Forum Discussion

Ankit137's avatar
Ankit137
Copper Contributor
Nov 17, 2025

Power query refresh using script

I am trying to automate the power query refresh using power automate. Change in a folder triggers multiple scripts. All the scripts seem to be working fine, but the final script to refresh the connections, to show updated query results in the various tabs is not working.

function main(workbook: ExcelScript.Workbook) { // Refresh all data connections workbook.refreshAllDataConnections(); }

what might be different about this?

thanks!

2 Replies

Resources