web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    Re: Trouble getting file content for a previous (major) version of a document

    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
    Re: Trouble getting file content for a previous (major) version of a document

    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

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard