cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Multiple select choice fields - file questions to SP columns with type choice

I have a microsoft form with several multiple choice questions and built a flow to file all questions to SP list. What is the easiest way to transform multiple choice fields to SP columns with type choice? The form is mainly multiple choice questions so an example with at least 2 multiple choice questions would be great. Example 

Q1: Pick a color (RED, GREEN)

Q2: Pick a shape (SQUARE, CIRCLE)

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Multiple select choice fields - file questions to SP columns with type choice

Hi @asile888,

 

You could following these steps to append the multiple-choice answer get from MS Form into the SharePoint list:

1. Convert answer string into the array by using json() function, and store them into an array variable separately.

2. Loop members of the array, and structure a new array ColorValue and ShapeValue like:

{

"Value": "RED"

}

3. Append  ColorValue and ShapeValue into create item action:

Annotation 2020-06-30 153747.jpg

 

Annotation 2020-06-30 153806.jpg

 

Annotation 2020-06-30 153823.jpg

 

Annotation 2020-06-30 153844.jpg

 

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.

View solution in original post

7 REPLIES 7
Highlighted
Super User
Super User

Re: Multiple select choice fields - file questions to SP columns with type choice

@asile888 

 

you want to store multiple choices from MS form into SharePoint Column.

Steps-

1. Use Initialize a variable - Select type-String

2. Use-Append to string variable- Input- your variable and value - dynamic content from "get response details" action of MS form 

you can put "," after dynamic value to separate each choice values.

 

Thanks

Hardesh

Highlighted
Regular Visitor

Re: Multiple select choice fields - file questions to SP columns with type choice

Thank you, could you include a screenshot of how you would do this for multiple questions?

 

Thanks!

Highlighted
Community Support
Community Support

Re: Multiple select choice fields - file questions to SP columns with type choice

Hi @asile888,

 

You could following these steps to append the multiple-choice answer get from MS Form into the SharePoint list:

1. Convert answer string into the array by using json() function, and store them into an array variable separately.

2. Loop members of the array, and structure a new array ColorValue and ShapeValue like:

{

"Value": "RED"

}

3. Append  ColorValue and ShapeValue into create item action:

Annotation 2020-06-30 153747.jpg

 

Annotation 2020-06-30 153806.jpg

 

Annotation 2020-06-30 153823.jpg

 

Annotation 2020-06-30 153844.jpg

 

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.

View solution in original post

Highlighted
Regular Visitor

@Re: Multiple select choice fields - file questions to SP columns with type choice

Thanks, @v-litu-msft I am getting an error in the first initialize variable block

",,, The provided value 'Red' cannot be parsed:"Unexpected character encountered while parsing value: R. Path, line 0, position 0.' 

Can you please assist with this? 

Highlighted
Regular Visitor

Re: @Re: Multiple select choice fields - file questions to SP columns with type choice

@v-litu-msft I think I know what the issue is, when I look at the output for "get response details'' the answer is already parsed for some reason, it does not show in Json format, which I assumed was a default, thus cannot convert using json functions. What setting controls whether the output of the get response details is in Json format ? Thanks for any input

 

 

Highlighted
Regular Visitor

Re: @Re: Multiple select choice fields - file questions to SP columns with type choice

@v-litu-msft  @Hardesh15 Since my output is parsed already, would it be ok to use

When new response is submitted --> get response details --> select (from :create Array; Map: Color - Question N1 and Shape - Question N2)

"Color":  "Yellow"

"Shape": "Circle"

Still need to figure out how to reference the array in the create item details if anyone has any input on this method or the one above. Thanks for any help!

Highlighted
Regular Visitor

Re: @Re: Multiple select choice fields - file questions to SP columns with type choice

@v-litu-msft any input on this? Thank you!

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (3,506)