Re: How to get Check In Comments of all Versions
Hi @jesstaylor90,
I think part of the solution is in your first link. However, with that approach you can only retrieve the latest check-in comment. If you want to retrieve the other check-in comments you can use the File Version method
With that method you can retrieve the historical check-in comments.
Below is an example of that approach.
1. Create two variables. One string variable for the ListName and one array variable for the CheckInComments

2. Use a Send an HTTP request to SharePoint action to list all versions

3. Add an apply to Each action. Use the Results property for the select an output from previous steps field. Below is an expression for that.
outputs('Send_an_HTTP_request_to_SharePoint_-_Get_All_Versions')?['body']['d']['Results']
4. Use another Send an HTTP request to SharePoint action to list all FileVersion properties within the Apply to Each action. In that API call I am using the VersionID field from the previous Send an HTTP request response.
_api/web/lists/getbytitle('@{variables('ListName')}')/items(1)/versions(@{items('Apply_to_each')?['VersionID']})/FileVersion

5. Add a condition within the Apply to Each action. Check if the results contain the property FileVersion
outputs('Send_an_HTTP_request_to_SharePoint')?['body']['d']
6. Add a Append to Array variable action in the If No section of the condition action.
This check is needed because this API request for the latest version is empty. Otherwise the apply to each loop will error.
Use the following json:
{
"Version": @{outputs('Send_an_HTTP_request_to_SharePoint')?['body']['d']['VersionLabel']},
"Check-In Comment": @{outputs('Send_an_HTTP_request_to_SharePoint')?['body']['d']['CheckInComment']}
}

7. Add a Create HTML Table action outside/after the apply to each action. Use the CheckInCommentsArray in this action.
