web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : In/gEnxH2iLX0cYcZ1zc0J
Power Automate - Building Flows
Answered

parsing multi-select choices from MS Forms using Flow

Like (0) ShareShare
ReportReport
Posted on 20 Oct 2021 18:45:59 by 11

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

I have the same question (0)
  • navyjax2 Profile Picture
    98 on 27 Jun 2024 at 20:13:49
    Re: parsing multi-select choices from MS Forms using Flow

    This doesn't complete everything, though. It gets to the Split, but from the Split, if you want to put the values into a multi-select Choice field on a list you need a Select, where you use the output of the Split as the "From", and you map it with "Value" (no quotes) in one box, and the current item (item()) in the other.

     

    Then, in the "Create item" for the list, there's this little toggle on the field, itself, that changes it from receiving a textual input into an array, and you need it set to accept an array. Then you can set that field to the Output (body) of the Select: body('Select')

     

    There's also a better way to get the input into that Split:

     

    Initialize variable: TestMultiCheck
    Type: String
    Value: outputs('Get_response_details')?['body/r24aeca27c28e44a09dc8c9ec71873d18']

     

    Compose TestMultiCheck JSON
    Inputs: json(variables('TestMultiCheck'))

     

    Join TestMultiCheck
    From: outputs('Compose_TestMultiCheck_JSON')

    Join with: ,

     

    Split TestMultiCheck
    Inputs: split(body('Join_TestMultiCheck'),',')

     

    Select TestMultiCheck
    From: outputs('Split_TestMultiCheck')
    Map: Value
    item()

     

    Then set the list item field equal to body('Select_TestMultiCheck')

     

  • satnam-1 Profile Picture
    11 on 25 Oct 2021 at 19:13:36
    Re: parsing multi-select choices from MS Forms using Flow

    thank you

  • AnthonyAmador Profile Picture
    2,553 Moderator on 25 Oct 2021 at 19:10:36
    Re: parsing multi-select choices from MS Forms using Flow

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

     

  • satnam-1 Profile Picture
    11 on 25 Oct 2021 at 19:04:50
    Re: parsing multi-select choices from MS Forms using Flow

    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

     

  • Verified answer
    AnthonyAmador Profile Picture
    2,553 Moderator on 25 Oct 2021 at 13:57:49
    Re: parsing multi-select choices from MS Forms using Flow

    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.

     

  • satnam-1 Profile Picture
    11 on 22 Oct 2021 at 18:19:15
    Re: parsing multi-select choices from MS Forms using Flow

    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.

  • AnthonyAmador Profile Picture
    2,553 Moderator on 21 Oct 2021 at 20:44:39
    Re: parsing multi-select choices from MS Forms using Flow

    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.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 626 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 374 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 284 Most Valuable Professional

Last 30 days Overall leaderboard
Loading complete