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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Imported data from MS ...
Power Automate
Answered

Imported data from MS Form shows brackets and quotes in Excel

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I currently have  a flow that is properly importing data from an MS Form to an Excel sheet, but the problem is that for questions on my form with multiple responses, the data is imported to Excel with brackets and quotes around each response selected. I'm trying to determine if there is a way to eliminate the brackets and quotes from data on the sheet.

 

For example:

 

-MS Form Question-

Who was in attendance?

o Jim H.

o Pam B.

o Michael S.

o Dwight S.

 

-User selects the following: 

Who was in attendance?

√ Jim H.

o Pam B.

√ Michael S.

√ Dwight S.

 

- Excel cell shows-

["Jim H.", "Michael S.", "Dwight S."]

 

 

I need the Excel cell to show:

Jim H., Michael S., Dwight S.

 

Or some other format of the data that can be recognized in a formula.

 

thanks!

Categories:
  • Brad_Groux Profile Picture
    4,556 on at

    The data being returned is in JSON format. For a full rundown on how to properly parse JSON in flow, see the A Thesis on the Parse JSON Action in Microsoft Flow blog post, by John Liu. You may also want to see the Track Microsoft Forms responses in an Excel Online (Business) spreadsheet template. The Perform advanced JSON transformations with Liquid templates in Azure Logic Apps documentation may be of some help too.

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Verified answer
    v-zhos-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    You can use the replace function here to replace the brackets and quotes.

    First I setted a choice column (people) in my form.

    Capture8.PNG

    I have made a flow for your scenario, please check it for a reference.

    The expression in Compose is: replace(body('Get_response_details')?['r6944a0257ae344fc8c35bd2a7cf1363e'],'[','')

    The expression in Compose 2 is: replace(outputs('Compose'),']','')

    The expression in Compose 3 is: replace(outputs('Compose_2'),'"','')

    Capture7.PNG

     

    Capture9.PNG

    Best Regards,

    Community Support Team _ Zhongys

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-zhos-msft 

    Thanks for your suggestion.

    I tried to do what you suggested, but for some reason I received an error when trying to utilize these two replacement expressions.

    The expression in Compose 2 is: replace(outputs('Compose'),']','')

    The expression in Compose 3 is: replace(outputs('Compose_2'),'"','')

     

    I can enter both of them if I close the parathesis without the final comma and quotation. 

     

    I don't know if this is the data is going into a table with mutiple columns of information or not.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This is how my flow looks, but it doesn't work when I fill out the MS Form.

     

    Capture.PNGCapture1.PNG

  • v-zhos-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a screenshot of the error?

    what's the expression in Compose?

    I need more details to analysis for you.

    Best Regards,

    Community Support Team _ Zhongys

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-zhos-msft 

    Here is the expression in COMPOSE

    replace(body('Get_response_details')?['r597875f2b7ae4d4aa1d5bca144c36f5d'])
     
    I did it this way because even in COMPOSE,  I receieved this error when trying to utilize the expression formatted suggested.
    Annotation 2019-06-08 000516.png
     
    This is the same error that I get for Compose 2 and Compose 3 when I try entering those expressions in the format suggested.
     
     
    Thanks again for all your help!
  • Vincebk Profile Picture
    38 on at

    I'm getting an error when I run my flow also. Please help!error1.PNGerror2.PNGerror3.PNG

  • Vincebk Profile Picture
    38 on at

    Can you put multiple replace functions in one Compose Array to affect multiple response details?

     

    Here is my code:

    replace(body('Get_response_details')?['ra674204a9a224fcabbaa5822e0a91eb1']replace(body('Get_response_details')?['r21df150effca4ca6812c950c0006a411']replace(body('Get_response_details')?['r426a43b4ff8d435f83e71b22660a8104']replace(body('Get_response_details')?['r6f8fdc613a8b4f3eb85c7224d9cf1202'],'[','')
  • rn4168908 Profile Picture
    2 on at

    The last part of each string is two single apostrophes with no character between, not a quotation mark. Took me awhile to figure that out....

     

    In example, second parameter is ']', then the third parameter is similar without the bracket ''

     

    Hope that helps. I created an account just to clear this up since the solution owner has stopped responding.

  • SG14 Profile Picture
    4 on at

    Hi Mate,

    I tried your proposed solution for my SharePoint list but it doesnt seem to work. 

     

    I have a list items in my MS Form and users are allowed to select as many as apply.

     

    When I create the item in SharePoint list, this is what shows as output:  (["Epidemic Failure","Indemnification","Intellectual Property","Limitation of Liability","Liquidated Damages","Product Warranty","Take or Pay"]

     

    [Note: I selected all the available options. Users could select one are many areas of risks from the available options].

     

    Greatly appreciate your solution. Thank you! Kannan.

     

     

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard