Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Flow - Get version History Document Library

(0) ShareShare
ReportReport
Posted on by

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>)/Versions

 I am currently using the following URI,  with no luck.  Any possibly help 

 

 

Sn3l_1-1692937115497.png

 

  • Expiscornovus Profile Picture
    31,897 Most Valuable Professional on at
    Re: Flow - Get version History Document Library

    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

     

     

     

    documentdraft.png

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492