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

DataTable header

(0) ShareShare
ReportReport
Posted on by 4
Dear All,
 
I wonder if we able to write the Header as well from a Data Table?
 
As it only write out the data for me but I also need the header to be written out as well.
 
Thanks
I have the same question (0)
  • David_MA Profile Picture
    14,956 Super User 2026 Season 1 on at
    You will need to provide more details and context as to what you are trying to do. Your post is too vague to provide any meaningful guidance. Are you asking about an Excel table, a Dataverse table, a SQL table, etc. Depending on what you are doing will determine what you need to do. From your post it also sounds like you have started a workflow to do what you want. If so, include a screen shot of the flow showing the configuration of the actions. By seeing what you are attempting to do, it will make offering advice much easier.
  • Suggested answer
    eetuRobo Profile Picture
    4,565 Super User 2026 Season 1 on at
    Datatable variables have .ColumnHeadersRow attribute in the variable which you can select to get the header names.


    So if you want to write header names on certain row on Excel you would do it like that:


    So that writes the to the first row the headers names then you can write the datatable values starting from row 2.
  • CU29030852-0 Profile Picture
    4 on at
    Hi eetuRobo,
     
    Thank you very much for your respond.
     
    Yes, finally it works and able to write out the header using attribute .ColumnHeadersRow.
     
    However, it also took me some time to work around on this scenario where my flow was Power FX enabled.
     
    So I noticed something interesting that the attribute .ColumnHeadersRow only available if the flow is without enabling Power FX (refer to below screenshot).
     
    I wonder if this is a normal case or it will get improve in future where this attribute will available in Power FX enabled environment?
     
    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

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