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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,670)