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
Highlighted
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
Highlighted
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

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (2,436)