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 have use "Extract data from web page" to extract a table and store as variable (DataTable type).
 
However, when I write in Excel, it only write the data without the header.
 
I have checked that in the DataTable variable, it do have store the header as header.
 
So is there a way I can write out the header as well?
 
Thanks
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    14,956 Super User 2026 Season 1 on at
    It sounds like you are trying to create a new Excel file and insert a table. This is a very good video that shows you step-by-step what to do: https://youtu.be/RB_ySjhm9Sg?si=xsi2pKcQvaKwnwkO
  • Suggested answer
    eetuRobo Profile Picture
    4,565 Super User 2026 Season 1 on at
    You can first write the headers to the first row and then write the table contents to the second row.
    You get the headers by adding .ColumnHeadersRow at the end of the table variable like so: %DataFromWebPage.ColumnHeadersRow%

  • 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