cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
satnam-1
New Member

parsing multi-select choices from MS Forms using Flow

Hello

 

I have created a Form that has a  mulit-select choice response where the end-user can choose which software they would like installed on your workstation. I would like to parsing this field and extract the selected items into an email that will get sent to the helpdesk for processing.

 

I have looked at the other content in this forum where yes/no answers are being pulled but not sure if that applies to me but I am a novice Forms and Flow/power automate user so maybe this is a simple solution that I may have over-looked.

 

Thank you for your assistance!

Satnam

1 ACCEPTED SOLUTION

Accepted Solutions

I think these expressions could be useful to you 

 

replace(replace(replace(body('Get_response_details')?['r24aeca27c28e44a09dc8c9ec71873d18'],']',''),'[',''),'"','')

 

split(outputs('Remove_characters'),',')

 

AnthonyAmador_3-1635170018738.png

 

AnthonyAmador_1-1635169882182.png

AnthonyAmador_2-1635169946211.png

 

Hope this helps.

Kind regards.

 

View solution in original post

6 REPLIES 6
AnthonyAmador
Microsoft
Microsoft

Hi @satnam-1 

 

There is no problem extracting the answer, the only thing that you need to be keep in mind is that the answer from multi-choice option will be extracted as a string with all the responses. 

 

For example, if you select PowerPoint and Excel the response is going to look like this ["PowerPoint","Excel"]

Here is an example. 

 

AnthonyAmador_0-1634848677368.png

AnthonyAmador_1-1634848731503.png

 

Hope this helps.

Cheers.

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

satnam-1
New Member

Thank you, I will have to do some more research on how to parse the output of the response data so its a bulleted List within the email body.

I think these expressions could be useful to you 

 

replace(replace(replace(body('Get_response_details')?['r24aeca27c28e44a09dc8c9ec71873d18'],']',''),'[',''),'"','')

 

split(outputs('Remove_characters'),',')

 

AnthonyAmador_3-1635170018738.png

 

AnthonyAmador_1-1635169882182.png

AnthonyAmador_2-1635169946211.png

 

Hope this helps.

Kind regards.

 

View solution in original post

Hello

 

Just curious which Office 365 license you have as I don't see those eventhough I have an E5 license for my profile.

satnam1_0-1635188667622.png

 

 

Thanks

 

It's a Compose, I just edited the name 🙂

 

satnam-1
New Member

thank you

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,949)