Skip to main content

Notifications

Community site session details

Community site session details

Session Id : IdSTU2dwYjeiaXAptDrfmW
Power Automate - Building Flows
Answered

Removing speech marks and brackets from output

Like (1) ShareShare
ReportReport
Posted on 13 Mar 2025 13:30:17 by 2
I'm a new PowerAutomate and have set up a workflow that adds a new row to an Excel table when a Form is submitted. On the form there is a question which allows multiple answers and when these come through to my Excel table they have brackets and speech marks around them which I don't want. How can I amend my flow to remove these from the output?
 
Thanks
Faye
  • Suggested answer
    David_MA Profile Picture
    9,729 Super User 2025 Season 1 on 13 Mar 2025 at 13:55:40
    Removing speech marks and brackets from output
    When you say speech marks, I assume you are referring to quote marks (")? If so, you can use an expression such as this:
     
    replace(coalesce(item()?['msdyn_flow_approvalresponse_comments'],'No Comments.'),'"','')
     
    Explanation: 
    • Coalesce Function: The coalesce function will check if item()?['msdyn_flow_approvalresponse_comments'] is empty or null. If it is, it will return 'No Comments.' instead.
    • Replace Function: The replace function will then replace any double quotes (") in the resulting string (either the actual comments or 'No Comments.') with an empty string.
    • So, even if msdyn_flow_approvalresponse_comments is empty or null, the expression will handle it gracefully and return 'No Comments.' without any double quotes.
    If you know your field will never be empty/null, then you can use this expression instead:
     
    replace(item()?['msdyn_flow_approvalresponse_comments'],'"','')
     
    Adjust as needed for your circumstances.
  • Verified answer
    Michael E. Gernaey Profile Picture
    35,867 Super User 2025 Season 1 on 13 Mar 2025 at 13:55:32
    Removing speech marks and brackets from output
     
    You would have to do something like this in a compose and then use the compose output instead of the answer
     
    replace(replace(replace(string(myquestion), ']', ''), '[',''),'"', '')
    where myquestion is replaced by your question dynamic property

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,369 Most Valuable Professional

Leaderboard
Loading complete