Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DM85
New Member

Version History with Check in Comments

I'm trying to connect to documents within a sharepoint library and pull back the version history including the check in comments. For some reason I can get all of the comments for previous versions, but not the current/latest version.

 

For example I have File A - the current version is 1.5 with checkincomment Approved by Final Approver, but when I pull back the data in Power Query I see every version except the latest one

 

NameVersionModifiedCheckincomment
File A1.112:01Draft file created
File A1.212:03First approval requested
File A1.312:10Approved by 1st approver
File A1.412:37Approved by 2nd approver

 


Is there a way to pull the latest version through and merge the two queries?

1 ACCEPTED SOLUTION
Expiscornovus
Super User
Super User

Hi @DM85,

 

Just to double check. What methods/Uri are you using in your API calls. Can you share your REST API call?

 

I have seen different results when people tried using the items method instead of directly interacting with the file versions. Below is an example of a similar discussion:

https://sharepoint.stackexchange.com/questions/276668/get-comments-of-previous-versions-checked-in-i...



Happy to help out 🙂

I share #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel

View solution in original post

4 REPLIES 4
Expiscornovus
Super User
Super User

Hi @DM85,

 

Just to double check. What methods/Uri are you using in your API calls. Can you share your REST API call?

 

I have seen different results when people tried using the items method instead of directly interacting with the file versions. Below is an example of a similar discussion:

https://sharepoint.stackexchange.com/questions/276668/get-comments-of-previous-versions-checked-in-i...



Happy to help out 🙂

I share #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel

@Expiscornovus thank you - this worked

lbendlin
Super User
Super User

Might not even need an API call for that.  See if you can change the view.

How to display the last check-in comment in a document library | SharePoint Maven

@lbendlin thank you - this is good to know when trying to pull the comments into the library

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors