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

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
Community Support

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
Community Support

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

Highlighted
kayaking
Frequent Visitor

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

Thanks Alice, this worked great.
AlbertoSP Helper II
Helper II

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 released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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
Users online (6,983)