cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MGB42
Frequent Visitor

Trigger condition from SharePoint choice column

Hi, 

 

I am trying to trigger a flow from a SharePoint list using the "When an item is created or modified" trigger. I am then using the Trigger Conditions option in the settings to restrict when the flow runs.

 

I have a 'Choice' column called "Submitted" in the list that allows either "Yes" or "No". I would like the flow to continue only when the value of the "Submitted" column equals "Yes". 

 

I have tried a variety of options (and read many blogs!) but am not clear how to get the get the expression to work.

 

Any help much appreciated

 

(These are some of the ones I've tried

@equals(triggerOutputs()?['Submitted']?['value'],'Yes')
@equals(triggerOutputs()?['Submitted/Value'],'Yes')
@equals(triggerOutputs()?['Submitted']?['Value'],'Yes')
@contains(triggerOutputs()?['body/Submitted'],'Yes')
@equals(triggerOutputs()?['body/Submitted#Value'],'Yes')
@contains(triggerOutputs()?['body/Submitted#Value'],'Yes'))

 

MGB42_0-1643133706591.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @MGB42 :

Pease try:

@equals(triggerOutputs()?['body/Submitted/Value'], 'Yes')

vbofengmsft_0-1643338845913.png

Best Regards,

Bof

 

View solution in original post

3 REPLIES 3
MGB42
Frequent Visitor

Hi,


Sorry I thought I had found the solution but this also does not work

 

The expression I used was @equals(triggerOutputs()?['body/FurtherInfo/Value'],'Yes')

 

I found this by putting a Condition in the flow immediately after the trigger and then started to enter the expression adding the dynamic field I wanted. It then populated the expression for me!

MGB42_0-1643134496751.png

v-bofeng-msft
Community Support
Community Support

Hi @MGB42 :

Pease try:

@equals(triggerOutputs()?['body/Submitted/Value'], 'Yes')

vbofengmsft_0-1643338845913.png

Best Regards,

Bof

 

Thank you Bof that now works perfectly

 

In case anyone else has this problem after much wrangling I realised I had made an amendment in the SharePoint list which was not picked up in PowerAutomate so it could not find the trigger output. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,261)