cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Benthomson
Level: Power Up

Check how many choices are picked in a form

I have a Microsoft form with a list of choices, users can pick more then one choice

Like this

Option 1
Option 2

All the way down to option 7

I want to in flow see if more then 6 options have been selected and do something based on this , I have tried a few different things and can't seem to get it to work
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Check how many choices are picked in a form

Hi @Benthomson ,

 

You could run a composeaction and then use the length function on the question that you want to check the number of answers on.

 

Number of options.PNG

 

Now It is possible to do a compose

 

lengthoptions.PNG

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Check how many choices are picked in a form

Hi @Benthomson ,

 

You could run a composeaction and then use the length function on the question that you want to check the number of answers on.

 

Number of options.PNG

 

Now It is possible to do a compose

 

lengthoptions.PNG

View solution in original post

Community Support Team
Community Support Team

Re: Check how many choices are picked in a form

Hi @Benthomson,

 

You can initialize a variable to store the array of selected Options, such as Choices.

The Choice is the multiple option type of the MS Form survey. After you get the response details, you can get the Choice from the dynamic content, then store them in the Choices Array after split them. ( split() function ).

Then you can use the length() function to get the number of the Choices array whether is greater than 6.

Annotation 2019-09-10 143435.png

I hope it can help you.

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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
Users Online
Currently online: 418 members 5,942 guests
Please welcome our newest community members: