web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Conditional Triggers with SharePoint

(0) ShareShare
ReportReport
Posted on by 716

Hello Power Automate Community,

I hope you can help please.

I'm using the SharePoint connector trigger called "When an item is created or modified".

I only want this Flow to run on a certain condition, which is:

 

When an item is modified

And

The field StatusReason = Send Approval Email Owner

 

The StatusReason field in SharePoint is a Choice field.

The output of the trigger for StatusReason on a specified record is this:

 

"StatusReason": {
                           "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
                           "Id": 4,
                           "Value": "Send Approval Email Owner"
                          },
                          "StatusReason#Id": 4,

 

What conditional trigger do I need please to only run the Flow when StatusReason = Send Approval Email Owner?

Any help would be greatly appreciated. Thanks very much,

Garry

I have the same question (0)
  • Verified answer
    efialttes Profile Picture
    14,756 on at
    Re: Conditional Triggers with SharePoint

    Hi!

    I would try with

    @equals(triggerBody()?['StatusReason']?['Value'],'Send Approval Email Owner')

    Hope this helps

  • CU01081947-0 Profile Picture
    716 on at
    Re: Conditional Triggers with SharePoint

    Hello @efialttes,

    Thanks for the reply. When I add your conditional trigger in the Flow's trigger it then never runs.

    I also tried adding a conditional trigger from @ScottShearer, which is found on his blog, but again the Flow never runs. Thanks Scott.

    As soon as I remove the conditional trigger it runs.

    Odd behaviour, I must be doing something wrong.

    Thanks very much,

    Garry 

  • Verified answer
    CU01081947-0 Profile Picture
    716 on at
    Re: Conditional Triggers with SharePoint

    Hello @efialttes,

    Your solution was correct, so I've marked it.

    The issue was that no conditional trigger was running.

    When I looked at @MattWeston365 excellent post, cheers Matt, I saw in the "Settings" of the trigger he had "Split On" enabled and then "Array" enabled. That, strangely was not enabled in my trigger. Once I enabled it your conditional trigger worked.

     

    Settings in trigger.png

     

    Thanks for your help,

    Garry 

  • efialttes Profile Picture
    14,756 on at
    Re: Conditional Triggers with SharePoint

    @GarryPope 

    I also marked your last post as Solution.

    Thanx for sharing! People like you make this community great 👍

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard