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 Platform Community / Forums / Power Automate / Column Names of a data...
Power Automate
Answered

Column Names of a data table

(0) ShareShare
ReportReport
Posted on by 15

Hi Team,

Any idea how to get column Names of a data table.

AmlanSahoo_0-1666332127889.png

I need Emp ID and Emp Name. Is there a way to get Columns Names in text or list format?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi!

    Yes, you can try this:

     

    Variables.CreateNewDatatable InputTable: { ^['EmpID', 'EmpName'], [1, $'''Amlan'''], [2, $'''Sonali'''] } DataTable=> DataTable
    SET ColumnNames TO DataTable.Columns

  • AmlanSahoo Profile Picture
    15 on at

    Hi JB,

    Thanks for your reply. I am asking if I can get the column names of a data table in any way. I know how to create a data table but I want to know how to get column Names.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

    Yes, I am aware of this.

    If you use the .Columns property on your DataTable variable, it will result in a list of the column names in your DataTable 🙂

     

    Take a look at this: https://learn.microsoft.com/en-us/power-automate/desktop-flows/datatype-properties#datatables

     

    2022-10-21 08_49_16-DEV 3 (svcgroupfi05).png

  • Verified answer
    AmlanSahoo Profile Picture
    15 on at

    Hi,

     

    I got the answer Table.Columns. This is what gave me the list of columns.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard