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:
I have the same question (0)
  • Suggested answer
    Expiscornovus Profile Picture
    33,851 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

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard