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 / Use the “Send an HTTP ...
Power Automate
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?
Categories:
  • Suggested answer
    Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at
    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard