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 / Is it possible to acce...
Power Automate
Answered

Is it possible to access data table columns by name in PAD?

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I'm trying to access the columns of a data table by name.

The official documentation says the following:

 

If you want to access a specific column in a datable that contains column headers, use the %ExcelData[rowNumber]['ColumnName']% notation.

 

This is obviously nonsense, since if we filter by column AND row, we end up with a cell, not a column.

 

I tried a bunch of stuff like using [:] for row numbers or even [0:{number of rows here}] but it seems as soon as you select more than one row, PAD hits you with the following error:

 

Variable 'DataTable[:]' doesn't have a property 'ColumnName'.

 

I mean I know I can build a workaround by searching for the index of the column name in DataTable.Columns and then accessing the column via that index, but this just seems unnecessarily complicated. Am I missing something?

I have the same question (0)
  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    There is an action. I believe it is “get column as list” or something like that. This extracts an entire column from a datatable into a list. And you should be able to use the same syntax without a row. 

    good luck!

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The action you need is called Retrieve data table column into list. You can use a column name in it to retrieve the entire column into a list variable.

    -------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution.

    If you like my response, please give it a Thumbs Up.

     

    If you are interested in Power Automate, you might want to follow me on LinkedIn at https://www.linkedin.com/in/agnius-bartninkas/

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard