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 :
Power Platform Community / Forums / Power Automate / Needing to replace a c...
Power Automate
Unanswered

Needing to replace a comma with "," and the output field always contains \",\"

(0) ShareShare
ReportReport
Posted on by 2
Hi
 
Been researching and testing all the solutions I can find to try and work this out.  Sadly no luck
 
Have a text field in excel that has several values in it separated by comma e.g. 123456, 545454, 999999
 
These values are needed to be passed into a JSON request and need to be formatted so that the commas are replace with "," - so the outcome I am trying to get is 123456","545454","999999  (the first and last double quotes are dealt with in the JSON request
 
What I get is 123456\",\"545454Z\",\"999999
 
I've tried lots of suggestions on here to add a step after I get this output to
Try and remove using replacing with DecodeURIcomponent - %5C (the \)
Try and remove using replace \" with "
Try and remove using replace \ with '' (nothing)
 
Would anyone have ideas on how I can solve please?  Happy to be pointed to suggestions for further research
Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,858 Most Valuable Professional on at
    Needing to replace a comma with "," and the output field always contains \",\"
     
     
    Hi
     
     
    Try the below
     
     
    Above compose expression is as follows:
    replace(outputs('Compose'),',','","')
     
     
     
     
  • JohnWalkerGBG Profile Picture
    2 on at
    Needing to replace a comma with "," and the output field always contains \",\"
    Thank you @Abm abm
     
    That was one of the options I had tried with the input data and sadly that didnt work
     
    Initially it did appear to work and the output on the run showed this image below
     
     
    When I looked at show raw outputs - the data that was passed to where I need to use it looked like this 
     
  • abm abm Profile Picture
    32,858 Most Valuable Professional on at
    Needing to replace a comma with "," and the output field always contains \",\"
    Hi
     
    Thanks for your reply. I need to see the flow and have a look.
     
    Thanks

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard