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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to generate CSV fi...
Power Automate
Unanswered

How to generate CSV file without commas in the values

(0) ShareShare
ReportReport
Posted on by 50

Hi,

 

I'm using power automate to generate a CSV file based on the columns in a SharePoint List. Is it possible to remove the commas inside a column while generating the CSV file. My CSV file looks like below and I want to remove the Commas in columns like "Requested By" and "Customer Name".CVS.PNG

 

Regards

Rana

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    dont use the [Requested By] field on its own in your output record to the CSV destination, use:

     

    replace(<requested by object>,',','')   and use the expression builder to create this expression.

  • Rohit Sharma354 Profile Picture
    on at

    Hello,

     

    Yes, the suggestion provided by @Anonymous  should help resolving your issue.

     

     

     

     

  • Rana Profile Picture
    50 on at

    Hi @Anonymous  ,

     

    Thanks for your reply. I'm new to PowerAutomate , could you let me know how to include the field that we need to replace inside the expression. When I click on the Dynamic content I can only see below two options and can't see the list field there.

    Expression.PNG

    Regards,

    Rana

  • Community Power Platform Member Profile Picture
    on at

    OK. you need to go back a step or two...

     

    I assume you have (or need to have) a process as follows:

     

    Get Rows (from excel worksheet)

       For Each Row

          Get required fields (columns)

          Process fields for conditions, changes, etc

          Write CSV row

      Loop

     ...

    End

     

    I'm guessing you've got the "Get Rows" bit as that is probably returning the "list of Items" and Values fields you are seeing.

    So you need a "loop" (for each...) to cycle through each row in the file (data set).

     

    After your "get Rows" action you need an "Apply to Each" action which takes a single input value, and you should put the "value" object there.

     

    Now within the "Apply to Each" block you can put your actual field processing, and its here that you will then see a long list of available objects, including "Requested By", etc.

     

    At some point you're going to have a "write record" action of some sort. If you're writing a CSV file this may just be a long string varaible to which you append each field in turn. In this field or in a field item in an action, you would then use the "object" from the source file however you wish, such as:   replace(<requested by object>,',','')

     

    Good luck!

     

     

  • Rana Profile Picture
    50 on at

    Hi @Anonymous ,

     

    Thanks for the detailed explanation. I was able to get this to work. 

     

    Regards,

    Rana

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard