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 / Form to Excel Data Cor...
Power Automate
Answered

Form to Excel Data Correction for Choice Type

(0) ShareShare
ReportReport
Posted on by 226 Moderator

I have been working on implementing a legacy form for our department into a new Power Automate workflow that will insert rows into an Excel file in a SharePoint Folder.  My lack of experience with Power Automate is where I am having problems.

 

My issue is on forms when using a Choice - Multiple Answer question the data is inserted as: ["John Smith"] or ["John Smith", "Jim Carey"], etc.

 

I am doing the following in the Flow:
- When a New response is submitted

- Get Response Details

- Add a New Row into a Table

 

I just want the entries as comma separated and not wrapped in [] or "".

 

What is the easiest way to have Power Automate collect the data and insert it as needed?

Categories:
I have the same question (0)
  • michael0808 Profile Picture
    304 on at

    Please try the following:

    michael0808_0-1699992118510.png

     

    Hope this helps!

     

  • Hack-7 Profile Picture
    226 Moderator on at

    @michael0808 the logic behind the suggestion makes sense, but "Test Input" would be coming from the MS Form entry. 

     

    When it does that step as an Array, I get an error.  

    "BadRequest. The variable 'formData' of type 'Array' cannot be initialized or updated with value of type 'String'. The variable 'formDataQuebec' only supports values of types 'Array'."

  • Verified answer
    michael0808 Profile Picture
    304 on at

    This was a simulation of the array coming from Forms in the following array format: 

    ["John Smith", "Jim Carey"]

     

    You are then going to essentially concatenate those array values into a single string using Join()

     

    Edit: It appears that Forms sends the data in a format that cannot be read as an array. You will need to read this as JSON and then use the Join action. (Change the red text to your response.)

    json(outputs('Get_response_details')?['body/r3b2c3e47db204a3eb1b41ec919d5e5d8'])
     

    michael0808_1-1700068535478.png

     

    Test Run:

    michael0808_0-1700068475268.png

     

     

     

     

     

    Please let me know if this helps!

  • Hack-7 Profile Picture
    226 Moderator on at

    I ended up using this to get the end result I needed:

    replace(
     replace(
     replace(, '[', ''
     ), ']', ''
     ), '"', ''
    )

     

  • michael0808 Profile Picture
    304 on at

    Read my edited post. You will most likely prefer it 🙂

  • Hack-7 Profile Picture
    226 Moderator on at

    Yes, that is what does the trick.

    Cheers

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard