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 / How do I get rid of br...
Power Automate
Unanswered

How do I get rid of brackets and speech marks that are automatically being inserted into my text field?

(0) ShareShare
ReportReport
Posted on by 14

Hi, I am very new to power automate and flows. I have managed to follow some tutorials and created a simple flow that works.

Bernicle_0-1667378444500.png

People fill in an online form and the data is sent to an Excel file, the flow then uploads the text fields into a share point list.

However, it is adding the following in certain areas in Excel, which is fine, but I dont want it uploaded into the share point list with the brackets, semi-colons or speech marks etc.

Example of Excel text: Help in the Home or Garden;Social and Community Support;Personal Care;

Example of what is being uploaded to sharepoint list: ["Help in the Home or Garden","Social and Community Support","Personal Care"]

What I need it to look like is this: Help in the Home or Garden, Social and Community Support, Personal Care

Can anyone help me please? I have tried to follow some other issues like this but I cant seem to figure out what to type out in the expressions/control box when I add one.

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Bernicle 

     

    Try the following

     

    image.png

     

    Expression I used above is:

     

    replace(replace(replace(string(outputs('Compose')),'"'''),'[',''),']','')
     
    Thanks
  • jiwhite Profile Picture
    500 on at

    Another option is to use the Apply to each connector to cycle through the array and append the strings together as desired.

  • Bernicle Profile Picture
    14 on at

    @abm Morning! thanks, this may be a silly question but do I add the compose boxes at the end of my flow or after the Get response details one? Im so sorry, I really am a novice on this stuff.

    I have done your solution after the end of my flow and it didnt remove the brackets, so it makes me think I am meant to add the boxes somewhere else in the flow?

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Bernicle 

     

    Could you post a screenshot of your flow please? Flow runs are sequential. So you can't add at the end of your flow.

     

    Thanks

  • jiwhite Profile Picture
    500 on at

    There seems to be a limit on the number of replaces that you can nest together.  I've had to use string variables and pass the string through multiple set variables until the data is how I want it.  Keep in mind that you cannot assign a string variable to itself, so you will need 2 string variables if you want to pass a string more than once.

     

    Input string: ["Help in the Home or Garden","Social and Community Support","Personal Care"]

    First replace: replace(variables('strStart'),'"','')

    Second replace: replace(variables('strReplace1'),'[','')
     Third replace: replace(variables('strReplace2'),']','')

    Output string: Help in the Home or Garden,Social and Community Support,Personal Care

     

    Capture.JPG

     

    To do this with a loop:

    jiwhite_0-1667502178972.pngjiwhite_1-1667502243270.png

    The condition is intReplaces = length(variables('arrStart')).

  • Bernicle Profile Picture
    14 on at

    Bernicle_0-1667556433845.png

     

  • Bernicle Profile Picture
    14 on at

    Hiya,

    I will give yours a try, thank you for this. 

  • Bernicle Profile Picture
    14 on at

    @abm & @jiwhite 

    Thanks for your suggestions, sadly I couldnt get it to work from either and I expect thats more to do with me rather than the suggestions.

    Just wanted to thank you both for your time.

    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard