cancel
Showing results for 
Search instead for 
Did you mean: 

SharePoint Conditional trigger

It would be very powerfull to have a trigger that starts conditionally.

 

For example:

I don't want a Flow to always trigger when an item is modified. Only when a specific condition is met, like Status = Completed

 

conditional trigger.png

 

I can now do that by using the When an existing item is modified trigger and setting a condition after the trigger, but it would be nicer that you can configure your condition within the trigger.

Status: New
Comments
desousaMario85
Regular Visitor
sergeluca
MVP

THis is solved. we now have conditional triggers https://www.youtube.com/watch?v=d4DlqZrpCjc&t=74s


@rikdekoning wrote:

It would be very powerfull to have a trigger that starts conditionally.

 

For example:

I don't want a Flow to always trigger when an item is modified. Only when a specific condition is met, like Status = Completed

 

conditional trigger.png

 

I can now do that by using the When an existing item is modified trigger and setting a condition after the trigger, but it would be nicer that you can configure your condition within the trigger.




FastTrack
Kudo Collector
shirefox
Regular Visitor

You can already set Trigger Conditions on Flows:

https://www.bythedevs.com/post/working-with-trigger-conditions-in-ms-flow

https://www.timlinenterprises.com/microsoft-power-automate-flow-trigger-conditions/

 

All of the Trigger Conditions must evaluate to True or the Flow will not start.

 

I also found this article useful for working out how to define the Trigger Conditions:

https://sharepains.com/2018/04/20/microsoft-flow-getting-your-sharepoint-field-values/

plucas
Frequent Visitor

I wonder why this is still marked as "New" ... 🤔

 

However, thanks alot for providing this functionality, great feature!

Anonymous
Not applicable

In the trigger conditions, we can also use a lot of other functions to define more conditions:

  • Starting a flow when a column is not empty: @not(empty(triggerBody()?['Column_Name']))
  • Combine multiple conditions: @or()
  • ...

See this post about advanced trigger conditionshttps://www.inspiribytes.com/power-automate/when-an-item-or-file-is-modified-trigger-conditions/

RachelRig
Advocate V

Trigger conditions do exist now! Also, there is a newish trigger action named "When an item or file is modified". That in itself is very useful but you can also use it in conjunction with another action named "Get changes for an item or file" to check for changes to specific list columns. 

https://docs.microsoft.com/en-us/sharepoint/dev/business-apps/power-automate/sharepoint-connector-ac...

ONYXJas
Advocate IV

You can do this by configuring the trigger settings and putting a filter on the trigger - see THIS ARTICLE>> https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Power-Automate-Trigger-Conditions-...

 

ONYXJas
Advocate IV

This is already possible using the Trigger Settings option - click the three dots on the top right corner of the trigger pane, then choose "Settings".  Scroll down to the bottom of the pane and you'll see an area where you can add conditional rules governing when the trigger will fire. The syntax is a little different but not too difficult to work out.