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 Automate
Suggested Answer

Power Automate format

(1) ShareShare
ReportReport
Posted on by
I'm utilizing Power Automate (Power BI) to export data into a CSV file. I would like to include a header and footer in the exported CSV file.
 
Current output:

 

phone             name       address   city   state   zip
234-456-5671 John Test address1 city1 state1 zip1
234-456-5672 Kevin Test address2 city2 state2 zip2
234-456-5673 Shane Test address3 city3 state3 zip3

Desired output:

 

10 SCADA.DB

4 STATUS      phone name address city state zip

                       234-456-5671 John Test address1 city1 state1 zip1

                       234-456-5672 Kevin Test address2 city2 state2 zip2

                       234-456-5673 Shane Test address3 city3 state3 zip3

0

o

I have the same question (0)
  • chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
    Can you show your flow?
     
  • Suggested answer
    chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
     
    You could do this:
     
    Step 1: 

     
     
    concat(
     
      '10 SCADA.DB',
     
      decodeUriComponent('%0D%0A%0D%0A'),
     
      '4 STATUS      phone name address city state zip',
     
      decodeUriComponent('%0D%0A%0D%0A')
     
    )
     
     
     
    Step 2: Get your data from Power BI
     
    Step 3: Loop through the items



     
     
     
    Append to string variable inside the Apply to each:
     
     
     
    concat(
     
      '                       ',
     
      item()?['phone'],
     
      ' ',
     
      item()?['name'],
     
      ' ',
     
      item()?['address'],
     
      ' ',
     
      item()?['city'],
     
      ' ',
     
      item()?['state'],
     
      ' ',
     
      item()?['zip'],
     
      decodeUriComponent('%0D%0A%0D%0A')
     
    )
     
    Step 5: Append to string variable after the Apply to each:
     
     
     
    concat(
     
      '0',
     
      decodeUriComponent('%0D%0A%0D%0A'),
     
      'o'
     
    )



    Let me know if it worked!

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 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard