Hi Zachary, thanks for your question! It sounds like there are a few parts here, so I'll try to answer them separately:
- Can you use an Office Script to start a Flow? You can use the "Run script" connector as part of a Flow, but you cannot start a Flow directly from an Office Script's code.
- Can an Office Script recognize when a user updates a value in Excel? At this time, we don't support this.
- Can you start a Flow when an Excel workbook is updated? We also don't support this at the moment, but we're working on it!
In the meantime, I'd suggest one of the following workarounds:
- Have your users fill out a Microsoft Form and use the "When a new response is submitted" trigger to start your Flow.
- Write an Office Script that checks if the Excel file has changed. For example, if you want your Flow to run when new responses are submitted through your form, you can have the script count how many responses are in the sheet and check against the last count (saved in a different part of the sheet). If there are new responses, it will update the count and return the information that the next step of your Flow needs. You would schedule this Office Script to run on a regular interval (e.g., every day), and if the script returns that new responses have been submitted, you can run the next steps of your Flow; otherwise, do nothing.
Let me know if you have any questions about implementing one of these workarounds! I understand #2 is somewhat complex so I'm happy to go into more detail if needed.
Best,
Michelle