web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Previous Item take...
Power Automate
Unanswered

Get Previous Item takes forever.......

(0) ShareShare
ReportReport
Posted on by 4

I have a flow that needs to retrieve a specific Column value from the previous SharePoint List record. Using the following method takes 30 seconds currently and will probably take more time with the more records that are added to the list.

JELMDX_0-1701947554142.png

I'm currently using Get Items, with 'Order by - Created desc' and 'Top Count -1'

JELMDX_1-1701947722185.png

Is there a better\quicker way to obtain the values of the previous record? 

Thank you


continue 

Categories:
I have the same question (0)
  • Gdarmon Outlook Profile Picture
    372 on at

    Hi,

    One way to achieve this is by using the Send an HTTP request to SharePoint action instead of the Get items action. You can use the following REST API endpoint to retrieve the previous version of a SharePoint list item:

    _api/web/lists/GetByTitle('ListName')/items(ID)/Versions

    You can then use the Parse JSON action to parse the response and retrieve the specific column value you are interested in.

    Here’s an example of how you can use this approach:

    1. Add the Send an HTTP request to SharePoint action to your flow.
    2. In the Uri field, enter the REST API endpoint mentioned above and replace ‘ListName’ with the name of your SharePoint list and ‘ID’ with the ID of the item you want to retrieve the previous version of.
    3. In the Headers field, add a new header with the name ‘Accept’ and the value ‘application/json;odata=nometadata’.
    4. Add the Parse JSON action to your flow and use the output from the Send an HTTP request to SharePoint action as the content.
    5. In the Schema field of the Parse JSON action, define the schema for the JSON response. You can use the Generate from sample option to generate the schema automatically.
    6. Use the Get property action to retrieve the specific column value you are interested in from the parsed JSON response.

    Br,

    Gill

  • JELMDX Profile Picture
    4 on at

    @DarmonGill Thanks for the response, i perhaps put a red herring in my description.... 

    "retrieve a specific Column value from the previous SharePoint List record" this should probably be 'retrieve a specific Column value from the last SharePoint List item created'.

    I'm not after the specific version of a SharePoint List item.

    Does this make a difference?





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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard