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 / Getting Last cell valu...
Power Automate
Unanswered

Getting Last cell value of a Particular coloumn in a datatable.

(0) ShareShare
ReportReport
Posted on by 9

I have a Datatable called as "OutputDt" and in it, it has a coloumn called "id". i want the last row value of that "id" coloumn in Datatable.  **In Power Automate Desktop**

I have the same question (0)
  • pengwei Profile Picture
    139 on at

    Hi Raj,

     

    You can first retrieve the column id as a list. Reverse it and get the first entry.

     

    pengwei_0-1689129769587.png

    pengwei_1-1689129804710.png

     

    pengwei_2-1689129931703.png

     

    pengwei_3-1689129957257.png

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You can access every row with an index like this: %OutputDt[RowIndex]['Id']%.

    The index for the last row will be equal to the count of total rows in the table minus 1 (as indexes are 0-based in PAD). A data table has a property called .RowsCount that contains the number of rows in the table. So, you can do %OutputDt[OutputDt.RowsCount-1]['Id']% to get the value from the last row in the column named 'Id'.

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

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 471

#2
11manish Profile Picture

11manish 246

#3
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

Last 30 days Overall leaderboard