workbook.refreshAllDataConnections(); // Refreshes external data connections
// Optional: Refreshes all pivot tables
let pivoTables = workbook.getPivotTables();
pivoTables.forEach(pivot => {
pivot.refresh();
});
// workbook.save();
}
My Problem: Despite employing workbook.refreshAllDataConnections() and pivot.refresh(), I've observed that the data in my Pivot Tables does not reliably update, even though both my Power Automate flow and the script execution are reported as "Succeeded."
I am uncertain if this approach (Office Scripts via Power Automate Cloud) is the correct one
Any help, shared experiences, or suggestions would be greatly appreciated.
Thank you in advance for your time.

Report
All responses (
Answers (