I made a comments column, enabled "Append changes to existing text", and enabled "Create a version each time you edit an item in this list?". How can I retrieve all versions so I can get all comments using JavaScript?
I tried using the following REST API endpoint:
.../_api/web/GetFileByServerRelativeUrl('.../Lists/Announcements_list/381_.000')/versions
But it doesn't return the comment and the author:
{
d: {
results: Array(1)
0:
CheckInComment: ""
Created: "2020-06-01T16:41:26Z"
CreatedBy: {__deferred: {…}}
ID: 6144
IsCurrentVersion: false
Size: 0
Url: "_vti_history/6144/Lists/Announcements_list/381_.000"
VersionLabel: "12.0"
__metadata: {id: ".../_api/SP.FileVersion4f29f152-200e-
4773-
906a-e4c496699174", uri: ".../_api/SP.FileVersion4f29f152-
200e-4773-906a-e4c496699174", type: "SP.FileVersion"}
}
}
Why is CheckInComment an empty string and why doesn't it get the CreatedBy value?