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

Flow with Trigger Conditions of Yes/No

I am trying to start a flow with a create or modify an existing item action with trigger condition on a single select field of yes no. The logic I have used for other flows is not working- @equals(triggerBody()?['Submit for Review']?['value'],'Yes') - any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @cadutcher ,

 

Could you please share the screenshot of the configuration of the flow?

 

I have made a test on my side and I find the trigger condition wouldn't work now since the output of the item from the when an item is created or modified is an array now.

 

You could only add the condition under the trigger to achieve the requirement, and you could leave the if no branch blank if the condition don't meet.

 

What is the type of the single select field that you mentioned? Is it a Choice type field? Or is it a Yes/No type field?

If it is a Yes/No type field, you could refer to screenshot below to create the flow:

1.png

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
RobElliott
Super User
Super User

@cadutcher try using true instead of Yes.

 

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

so this instead: @equals(triggerBody()?['Submit for Review']?['value'],true)

Hello @cadutcher 

@RobElliott  is right, you should use the value true, as you asked in the last post.

There is an additional issue with your expression - you have to use the columns internal name! That is the name without spaces!

Look at the list settings and check what is the real column name. If you did like me, then it would be "SubmitForReview" but if you defined it with spaces in the name, then the internal name would be "Submit_x0020_for_x0020_Review".

Also, remove the "?['value']" part, a Yes/No column does not have that!

Try it out and have fun 🙂

Kind regards, John

v-alzhan-msft
Community Support
Community Support

Hi @cadutcher ,

 

Have your problem been solved by @JohnAageAnderse  and @RobElliott 's solution?

Please take a try and let me know if the issue could be solved, if not, please share the run history of the flow when it has run failed and I would provide a proper solution for you.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Alice, 

 

Thanks for connecting. 

 

The flow is succeeding, but the trigger logic is not holding. The action triggers on both yes/no rather than stopping at false. Any ideas?

Hi @cadutcher ,

 

Could you please share the screenshot of the configuration of the flow?

 

I have made a test on my side and I find the trigger condition wouldn't work now since the output of the item from the when an item is created or modified is an array now.

 

You could only add the condition under the trigger to achieve the requirement, and you could leave the if no branch blank if the condition don't meet.

 

What is the type of the single select field that you mentioned? Is it a Choice type field? Or is it a Yes/No type field?

If it is a Yes/No type field, you could refer to screenshot below to create the flow:

1.png

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,695)