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 / 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,195 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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard