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 / How do i Retrieve late...
Power Automate
Answered

How do i Retrieve latest record from SharePoint list for HTTP connector using Power Automate.

(0) ShareShare
ReportReport
Posted on by 403

I have two Power Automate flows.

The first flow is named PA1, and it saves a string variable inside a SharePoint list under a column called Calculated_Result, as shown in the screenshot below.

Jupyter123_0-1679654283299.png

 

In the second flow (PA2), I want to use this SharePoint list by retrieving the most recently added row. However, in the Get Item action, I have specified ID : 1, [See screenshot Below] but I actually want to retrieve the latest record of calculated_Result column from the SharePoint list and not just the first record.

In the HTTP connector action, I have a JSON payload where I want to pass the value of a SharePoint list column called 'calculated_Result'. Also i used power apps action at beginning of flow, its because i want to pass both power apps input + sharepoint list input to my http connector.

Jupyter123_1-1679654467234.png

 

Note:

If I use Get Items instead of Get Item, it goes into an Apply to each loop, and the Parse JSON action is not able to parse the JSON because the HTTP connector is inside the Apply to each loop. Even if I use Parse JSON inside Apply to each, I cannot use the Initialize Variable action inside it, as it shows an error stating that the Initialize Variable action should be used at the topmost level.

 

How can i fix this?

 

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,501 on at

    Hey @Jupyter123 

     

    Dont use get item, use get items and keep its order by and top count conditions as below:

     

    Sundeep_Malik_0-1679660746589.png

     

    This will order your list in descending order of created date and time so the latest entry in the table. Then top count 1 will take out only 1 value from it.

     

    Then use a compose inside it and add a similar condition as below:

     

    outputs('Get_items')?['body/value']?[0]?['YourFieldYouwanttoretrieve']
     

    Sundeep_Malik_1-1679660831022.png

     

    I hope this helps 🙂

  • Jupyter123 Profile Picture
    403 on at

    @Sundeep_Malik Hey, thanks for the reply. it works!

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 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard