cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kayaking
Level: Powered On

How do I add multiple choices to a condition?

Please see attached. When the user selects either choice 1, 2, or 3, I want the condition to be true and continue the workflow. I have tried using commas but that does not work. Please help! Thank you.

 

 https://i.imgur.com/tGmRY0L.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How do I add multiple choices to a condition?

Hi @kayaking,

 

Could you please share more details about the configuration of the Delivery Method column in the list?

 

I have made a test on my side to create the Delivery Method column in the list as below:

 

Capture.PNG  

And I have created a flow as below:

Capture.PNG

 

The expression in the Condition as below:

@or(or(contains(triggerBody()?['Delivery_x0020_Method']?['Value'], 'Choice 1'),contains(triggerBody()?['Delivery_x0020_Method']?['Value'], 'Choice 2')),contains(triggerBody()?['Delivery_x0020_Method']?['Value'], 'Choice 3'))

 

When an item is created, and the Delivery Method column value contains Choice 1, or contains Choice 2, or contains Choice 3,

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Alice

 

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: How do I add multiple choices to a condition?

Hi @kayaking,

 

Could you please share more details about the configuration of the Delivery Method column in the list?

 

I have made a test on my side to create the Delivery Method column in the list as below:

 

Capture.PNG  

And I have created a flow as below:

Capture.PNG

 

The expression in the Condition as below:

@or(or(contains(triggerBody()?['Delivery_x0020_Method']?['Value'], 'Choice 1'),contains(triggerBody()?['Delivery_x0020_Method']?['Value'], 'Choice 2')),contains(triggerBody()?['Delivery_x0020_Method']?['Value'], 'Choice 3'))

 

When an item is created, and the Delivery Method column value contains Choice 1, or contains Choice 2, or contains Choice 3,

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Alice

 

View solution in original post

kayaking
Level: Powered On

Re: How do I add multiple choices to a condition?

Thanks Alice, this worked great.
AlbertoSP
Level: Powered On

Re: How do I add multiple choices to a condition?

Hi everyone.

The 3 Choice work for me

@or(or(contains(triggerBody()?['Delivery_x0020_Method']?['Value'], 'Choice 1'),contains(triggerBody()?['Delivery_x0020_Method'

 

How do i add a 4th, 5th or 6th choce?

 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 52 members 3,445 guests
Please welcome our newest community members: