Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Retrieving last item in excel not working as expected.

(0) ShareShare
ReportReport
Posted on by 2

Hello, 

I am building a flow triggered by the submission of an MS form. The flow creates a new row in an excel table and then some excel formulas work out a score and then the score is emailed to the person who submitted the form. 

alexgriffiths_0-1649701294100.png

 

To get the last row in the excel table I have used the list rows in the present table and ordered them in descending order as shown.

alexgriffiths_1-1649701361254.png

However, when the email comes through it is not picking the score associated with that row it is picking the score based on the previous row. 

 

Any help would be greatly appreciated.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Retrieving last item in excel not working as expected.

    Hi @alexgriffiths,

    Do you want to get the last row of your excel table?

     

    I think you could just use the last function to achieve this as below:

    vqiaqimsft_0-1649909339932.png

    last(outputs('List_rows_present_in_a_table')?['body/value'])

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1