×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

sharepoint 365 get all version properties

sharepoint 365 get all version properties

sharepoint 365 get all version properties

(OP)
Hi all,

i need to get a specific docuemnt version properties from sharepoint 365

i tried below end point to get the version history

https://<SHAREPOINT365_URL>/_api/web/getfile...('relative_path_of_file')/Versions

<entry>
<id>https://<SHAREPOINT365_URL>/_api/SP.FileVers...;
<category term="SP.FileVersion" scheme="http://schemas.microsoft.com/ado/2007/08/dataservi..." />
<link rel="edit" href="SP.FileVersion2aef74b8-6e02-4f10-b482-1b0d4be7eb35" />
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservi..." type="application/atom+xml;type=entry" title="CreatedBy" href="SP.FileVersion2aef74b8-6e02-4f10-b482-1b0d4be7eb35/CreatedBy" />
<title />
<updated>2019-11-12T12:28:14Z</updated>
<author>
<name />
</author>
<content type="application/xml">
<m:properties>
<d:CheckInComment></d:CheckInComment>
<d:Created m:type="Edm.DateTime">2019-10-04T12:51:03Z</d:Created>
<d:ID m:type="Edm.Int32">512</d:ID>
<d:IsCurrentVersion m:type="Edm.Boolean">false</d:IsCurrentVersion>
<d:Length m:type="Edm.Int64">18847</d:Length>
<d:Size m:type="Edm.Int32">18847</d:Size>
<d:Url>_vti_history/512/<xxx_path_of the file></d:Url>
<d:VersionLabel>1.0</d:VersionLabel>
</m:properties>
</content>
</entry>
<entry>
<id>https://<SHAREPOINT365_URL>/_api/SP.FileVers...;
<category term="SP.FileVersion" scheme="http://schemas.microsoft.com/ado/2007/08/dataservi..." />
<link rel="edit" href="SP.FileVersion2aef74b8-6e02-4f10-b482-1b0d4be7eb35" />
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservi..." type="application/atom+xml;type=entry" title="CreatedBy" href="SP.FileVersion2aef74b8-6e02-4f10-b482-1b0d4be7eb35/CreatedBy" />
<title />
<updated>2019-11-12T12:28:14Z</updated>
<author>
<name />
</author>
<content type="application/xml">
<m:properties>
<d:CheckInComment></d:CheckInComment>
<d:Created m:type="Edm.DateTime">2019-10-04T12:51:03Z</d:Created>
<d:ID m:type="Edm.Int32">512</d:ID>
<d:IsCurrentVersion m:type="Edm.Boolean">false</d:IsCurrentVersion>
<d:Length m:type="Edm.Int64">18847</d:Length>
<d:Size m:type="Edm.Int32">18847</d:Size>
<d:Url>_vti_history/512/<xxx_path_of the file></d:Url>
<d:VersionLabel>2.0</d:VersionLabel>
</m:properties>
</content>
</entry>

now i need to get the details/properties of the each version

is there any api to pass the url or version id and (_vti_history/512/<xxx_path_of the file>) and get the specific version details

Please help
Thanks

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close