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 can I make semicol...
Power Automate
Unanswered

How can I make semicolon the delimiter in CSV file

(0) ShareShare
ReportReport
Posted on by

I'm trying to convert data to CSV and attach in email. The compose actions is attempting to convert the CSV to string and then replacing "," to ";" but it didnt seem to work well. So instead tried to write ";" in the Select action itself but the "," remains as a column. How can I fix this or go around it?

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Sorry, can you elaborate the issue with examples and screenshots?

     

  • Community Power Platform Member Profile Picture
    on at

    My work's default excel delimiter is a semicolon. Initially I'm Parse JSON the input content that comes from PowerApps, then im selecting the certain column that I want and creating a CSV table with it so that I can attach in the email content I'll be sending. However, because the delimiter in create CSV table action is a comma, all the output data in the excel is in just one single column. I want to basically replace the commas with a semicolon.

     

    I attempted the replace function but it wanted the input to be a string, so I attempted to first convert the output data (from create CSV table action) into a string and then the replace function. But this didn't work properly, so instead in the Select action I put a semicolon in the beginning and end of every key and value. In this way the columns are being seperated in the excel but there are also commas inbetween every column. I'm trying to find a way to fix this or a way to go around it, please  

     

     

     

    MicrosoftTeams-image (15).pngMicrosoftTeams-image (14).pngMicrosoftTeams-image (13).pngMicrosoftTeams-image (12).png

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    The excel screenshot you have is your source file? Since CSV is just a text file, Replace function should just work.

     

    replace("Something,another thing",',',';')
  • Community Power Platform Member Profile Picture
    on at

    No, the excel is the attached file in the email I receive with this flow. The datasource comes from SharePoint

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    See my updated question

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    In this case I'm doing: replace(outputs('Create_CSV_table'),',',';') and getting this error:


    alikhankv1999_0-1691625676678.png


    So i try to do the the action: 

     

    - string(outputs('Create_CSV_table')) first and then

    - replace(outputs('Compose_3'),',',';')

     

    but doing that, the output becomes:


    alikhankv1999_1-1691625979493.png

    alikhankv1999_2-1691625998178.png

     

    and the excel file's values dont appear (with the "{body:"" in the beginning as well):

     

    alikhankv1999_3-1691626053673.png

     

     

     

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Can you put outputs('Create_CSV_table') in a compose and see what it returns?

    It must be returning an object (not string)

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