Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Use the “Send an HTTP ” action to retrieve the previous version can not work

(1) ShareShare
ReportReport
Posted on by 2
Use the “Send an HTTP request to SharePoint” action to retrieve the previous version of the item. Configure it with the following details:
  • Method: GET
  • URI: /_api/web/lists/getByTitle('YourListName')/items(@{triggerOutputs()?['body/ID']})/versions?$filter=IsCurrentVersion eq false&$orderby=versionId desc&$top=1
 
top=1 always return null in recent days,  but when changed to top=2, it returned the correct result,only  one ,when changed to top=3, it reurned two history records.
Is it a bug for power automate? How to fix it?
  • Suggested answer
    Expiscornovus Profile Picture
    31,758 Most Valuable Professional on at
    Use the “Send an HTTP ” action to retrieve the previous version can not work
    Might be a limitation of the combination of query parameters.
     
    Have you tried removing the $top=1 and just use a first in an expression?
    first(outputs('Send_an_HTTP_request_to_SharePoint')?['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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492