cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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
Frequent Visitor

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

Thanks Alice, this worked great.
Highlighted
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

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!

Top Solution Authors
Users online (7,319)