
Announcements
Hi,
I have a flow that is running when a file is modified or updated that's grabbing the file id, to show the file name in a powerapp gallery but I keep getting the flow shut down due to too many actions. How can I sort this please ?
Many thanks
Mike
@mike-davies This is because your flow is triggered when a file is created or modified. You are also using the same flow to Update the file properties which creates an infinite loop (aka the flow triggers itself over and over again).
One way to solve this is to run this flow from a service account. You can then use trigger conditions to only trigger the flow if the item was created or updated from a user account other than yourself.
Check out this YT Tutorial for more details on how to add Trigger Conditions to your flow: 4 Ways You Can Use Trigger Conditions in Your Microsoft Power Automate Flow
If you are using an Automated Cloud flow trigger in your flow—you need to consider adding trigger conditions.
Do YOU 🫵 know what a trigger condition is? Trigger conditions can be set in most flow triggers. These conditions you set must be true for the trigger to fire. In this Power Automate tutorial, I’m going to show you how to use trigger conditions in your flows to control when your Power Automate flows trigger.
If your plan has flow run limits—you can avoid triggering your flows unnecessarily by using trigger conditions.
I’ll cover four different flow examples that would benefit from trigger conditions:
⚡️ Triggering a flow when a column is changed to a specific value
⚡️ Triggering a Flow When an Event Updated or Deleted
⚡️ Triggering a Flow When a New Folder is Created
⚡️ Triggering a Flow When a Specific Email is Received I’ll also show you a trick on how to easily create the expressions needed and give you a few tips on how to troubleshoot your flow.
IN THIS VIDEO:
✅ Four different flows that would benefit from trigger conditions
✅ What is a trigger condition?
✅ How to add a trigger condition to your flow
✅ How to trigger a flow when a column is changed to a specific value
✅ How to trigger a flow when an event is updated or Deleted
✅ How to trigger a flow when a new folder is created
✅ How to trigger a flow when a specific email is received
✅ How to troubleshoot a trigger condition
✅ How to prevent case sensitivity issues with a trigger condition
✅ How to use the filter array action to easily compose an expression that can be used in a trigger condition
----
Another way is to use a recurrence trigger instead and check your files at a set time interval. This is my preferred method—however your requirements may be different. Can you provide a bit more insight as to what your requirements are?