
Announcements
Hello,
an item on SharePoint list is created by a user.
It's initially created without any attachments.
Another user comes and upload an attachment.
I want to build a flow triggered only when an attachment is uploaded only.
Thank you
@amaniramahi You'll need to utilize Trigger Conditions in your flow trigger.
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
As demonstrated in the YT Tutorial, add a Filter Array action (temporarily) to your flow to help compose the expression you'll need for the Trigger Condition.
Insert the Has attachments dynamic content from the flow trigger into the first value field. Leave the operator as is equal to.
In the second value field insert true.
Click on the three dots of the Filter Array action and select Peek Code.
Copy the expression from the @ symbol to just before the closing double quotes to your clipboard.
In the flow trigger click on the three dots then click on Settings.
In the Trigger Condition field, paste the expression from your clipboard. Press Done.
Delete the Filter Array action. To run a test, you'll need to add at least one action to your flow. I've inserted a Compose action and the Has attachments dynamic content you can insert any dynamic content into this Compose action. It's just for testing purposes.
Run a test. First, add an item to your SP list without an attachment. Your flow should not trigger. Next, add another item to your SP list with an attachment. Your flow should trigger.
----