One of the most frustrating experiences in Power Automate is when a flow that has been running perfectly suddenly starts failing after a seemingly harmless change to a SharePoint List . Recently, I encountered exactly this scenario, and the solution turned out to be much simpler than I expected. The Scenario Imagine you have a flow triggered by the "When an item is created or modified" SharePoint trigger. Everything works perfectly until someone updates the SharePoint list schema. For example: A Person or Group column is changed from Single User to Allow Multiple Users . A column type is modified. Certain field settings are updated. Although the trigger itself doesn't change, the flow may still begin to fail because it continues referencing the old SharePoint schema . Why Does This Happen? Power Automate stores metadata about the SharePoint list when the trigger is configured. If the list schema changes later, the flow doesn't always refresh that metadata automa...
Automate Excel Data Refresh with Office Scripts If you work with Excel files that contain Power Query , external databases , or connected data sources , manually refreshing the data every time can be repetitive. Office Scripts provide a simple way to automate this process. In this article, we'll explain the following Office Script: function main(workbook: ExcelScript.Workbook) { // Refresh all data connections workbook.refreshAllDataConnections(); } What is Office Scripts? Office Scripts is a feature in Excel for Microsoft 365 that allows you to automate repetitive tasks using TypeScript , a language based on JavaScript. Office Scripts can: Refresh data connections Format worksheets Create tables Generate reports Automate daily Excel tasks Work with Power Automate Understanding the Script Let's break the code into smaller parts. Function Declaration function main(workbook: ExcelScript.Workbook) { Every Office Script starts with a main() function. What does it do? main...