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 / Retrieve data table co...
Power Automate
Answered

Retrieve data table column into list actions from Excel sheet - How to select specific sheet?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all, I'm opening an Excel file with a tab/sheet with a set of URLs.  I'm trying to read the values from that column and feed it into For Each Loop.  Retrieve data table column into list action is erroring out with this error "Parameter 'Data table': Argument 'DataTable' must be 'Datatable'." as I am not sure how to put the sheet name into a variable in previous steps.  I tried Set active Excel worksheet but it doesn't have any output variable.  Maybe I'm missing the basic concept of PAD...

 

Thank you for your help!!

 

t5p_1-1617396254385.png

 

t5p_2-1617396395984.png

 

 

t5p_0-1617396161917.png

 

 

  • Verified answer
    burque505 Profile Picture
    398 on at

    Hi @Anonymous, maybe this will be of some use to you.

    In this flow:

    • Open Excel worksheet
    • Select range of cells
    • Copy the selected cells (i.e. put them on the clipboard)
    • Get that clipboard text with the cells' contents into a variable
    • [debug] Display clipboard text
    • Split text variable into a list
    • Display TextList[0] (i.e. first selected row).

    Flow:

    split to list.png

    Records on clipboard (and saved to variable)

    clipboard-records.png

    Setting up the splitting of the clipboard text (now in a variable) to a list

    setup-list.png

     

    And display TextList[0]

    list[0].png

    From there you should be able to get to the URLs with your loop.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @burque505 Thank you again so much.  Trying out now.  Thanks!!!!

  • burque505 Profile Picture
    398 on at

    Good luck, @Anonymous.

    I am hoping that as PAD matures we'll see more Excel actions (and more actions related of Office in general, Word in particular). I am also hoping for more actions related to datables.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Nothing pops up as a message...hhhmmm

    t5p_0-1617400317381.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    so there is no way to specify tab or worksheet??

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This seems to be describing what I'm trying to do but still not familiar with PAD concept...

    https://docs.microsoft.com/en-us/power-automate/desktop-flows/variable-data-types

     

  • burque505 Profile Picture
    398 on at

    @Anonymous wrote:

    so there is no way to specify tab or worksheet??


    You mean to get the worksheet data into a datatable, right? See below. That's probably both easier and more in line with what you want to do than what I proposed earlier.

    Here I just read one column into the datatable, the column containing the URLs. Therefore the column index for the message display is 'ColumnAsList[0]'. I imagine reading the whole sheet into a datatable will be very common, though.

    read-from-sheet.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    OK, sort of getting the concept.

    t5p_0-1617402278796.png

     

  • burque505 Profile Picture
    398 on at

    👍👍

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 134 Super User 2026 Season 2

Last 30 days Overall leaderboard