
Announcements
Good Afternoon
I am trying to retrieve Version Details on a document library. I have seen multiple post on how to retrieve it in List but with the current List URI - it returns the details, but the Comments is not unique to the last record, and applies it to all.
I have noted that instead of using Lists in Sending an HTTP Request to SharePoint I should use relative path.
<TENANT>/sites/<SITE>/_api/web/lists/GetByTitle('<LISTNAME>')/items(<ID>)/VersionsI am currently using the following URI, with no luck. Any possibly help
Hi @Sn3l,
Actually, you should be able use that original approach for document libraries as well.
In that original approach for Lists you referred to you can replace the ListName by your LibraryName in the GetByTitle method, that should also work. Under the hood a Document Library is also a SP.List object with just a different BaseTemplate, 101.
Can you try the below
_api/web/lists/GetByTitle('Document Draft')/items(@{variables('ID')})/Versions