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 / Trouble getting file c...
Power Automate
Unanswered

Trouble getting file content for a previous (major) version of a document

(1) ShareShare
ReportReport
Posted on by 4

We need to upload the last major version of all the documents in a library to an ftp server.

Through a http request I am able to get the urls for the previous versions of a file:

timd1_0-1676368411279.png

I can filter the response array by the version I am looking for (last published major version) and extract the Url from the json object with: body('Filter_array_-_Document_versions')[0]?['Url']

timd1_1-1676369208718.png

 

The url I get back is always in the following format: _vti_history/<ID>/<Libraryname>/<Filename>.docx

 

In the next step I try to retrieve the file contents using this url. But whatever I try, i keep on getting 404 File not found errors:

timd1_3-1676369680942.png

What am I doing wrong here?

 

If my approach is completely wrong, is there any other way to achieve my goal (downloading the file content for the last major version of a document)?

Categories:
I have the same question (0)
  • timd1 Profile Picture
    4 on at

    Off course I can allways use an account which does not have access to the minor versions for my particular scenario, but I would still like to know if my approach above is feasable for future similar scenario's where we would need the file contents of an earlier file version without restoring it.

  • esemuhdeoh Profile Picture
    40 on at

    Same question here... Any help so far?

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard