Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
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 

  • JELMDX Profile Picture
    4 on at
    Re: Get Previous Item takes forever.......

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





  • Gdarmon Outlook Profile Picture
    372 on at
    Re: Get Previous Item takes forever.......

    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
rpersad Profile Picture

rpersad 16

#2
David_MA Profile Picture

David_MA 10 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

Overall leaderboard