SharePoint API call for retrieving comments (append-only)

%3CLINGO-SUB%20id%3D%22lingo-sub-161094%22%20slang%3D%22en-US%22%3ESharePoint%20API%20call%20for%20retrieving%20comments%20(append-only)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-161094%22%20slang%3D%22en-US%22%3E%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20class%3D%22votecell%22%3E%3CDIV%20class%3D%22vote%22%3E%3CSPAN%20class%3D%22vote-count-post%20%22%3E0%3C%2FSPAN%3E%3CA%20class%3D%22vote-down-off%22%20title%3D%22This%20question%20does%20not%20show%20any%20research%20effort%3B%20it%20is%20unclear%20or%20not%20useful%22%20target%3D%22_blank%22%3Edown%20vote%3C%2FA%3E%3CA%20class%3D%22star-off%22%20href%3D%22https%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F236294%2Fsharepoint-api-for-getting-all-the-comments%23%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Efavorite%3C%2FA%3E%3CDIV%20class%3D%22favoritecount%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FTD%3E%0A%3CTD%20class%3D%22postcell%22%3E%3CDIV%3E%0A%3CDIV%20class%3D%22post-text%22%3E%0A%3CP%3EI%20am%20trying%20to%20find%20an%20API%20that%20retrieves%20all%20comments%20from%20%22Append-Only%20Comment%22%20field.%20I%20couldn't%20find%20one%20API%20that%20would%20return%20all%20the%20previous%20comments%2C%20modified%20date%2C%20and%20the%20modified-by%20user.%20API%20that%20returns%20data%20from%20change%20log%20only%20returns%20the%20last%20comment%20and%20GetListItemChangeSinceToken%20API%20call%20only%20returns%20the%20last%20change%20even%20when%20there%20are%20more%20than%20one%20change%20happened%20since%20the%20last%20token.%20The%20version%20history%20required%20parsing%20html%20which%20I%20prefer%20not%20to%20use.%20If%20you%20happen%20to%20know%20an%20API%20call%20that%20could%20possibly%20solve%20my%20problem%2C%20please%20let%20me%20know.%20Thanks!%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-301694%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20API%20call%20for%20retrieving%20comments%20(append-only)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-301694%22%20slang%3D%22en-US%22%3E%3CP%3EI%20believe%20what%20you%20are%20looking%20for%20'GetVersionCollection'%20operation.%26nbsp%3B%20Here%20is%20a%20javascript%20example%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F38919724%2Fsharepoint-how-to-show-appendonlyhistory-on-a-display-template-in-a-cross-publi%2F39073389%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F38919724%2Fsharepoint-how-to-show-appendonlyhistory-on-a-display-template-in-a-cross-publi%2F39073389%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-163255%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20API%20call%20for%20retrieving%20comments%20(append-only)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-163255%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20the%20same%20issue%2Fquestion.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'm%20using%20REST%20to%20pull%20all%20the%20tasks%20from%20a%20task%20list.%20I%20added%20a%20multi%20line%20text%20column%20called%20Notes.%20For%20some%20reason%20the%20REST%20result%20is%20not%20returning%20every%20note.%20When%20I'm%20looking%20at%20the%20list%20item%20the%20Out%20of%20the%20Box%20way%20the%20note%20appears%2C%20but%20it%20isn't%20returned%20with%20the%20REST%20query.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

I am trying to find an API that retrieves all comments from "Append-Only Comment" field. I couldn't find one API that would return all the previous comments, modified date, and the modified-by user. API that returns data from change log only returns the last comment and GetListItemChangeSinceToken API call only returns the last change even when there are more than one change happened since the last token. The version history required parsing html which I prefer not to use. If you happen to know an API call that could possibly solve my problem, please let me know. Thanks!

2 Replies
Highlighted

I have the same issue/question.

 

I'm using REST to pull all the tasks from a task list. I added a multi line text column called Notes. For some reason the REST result is not returning every note. When I'm looking at the list item the Out of the Box way the note appears, but it isn't returned with the REST query.

Highlighted

I believe what you are looking for 'GetVersionCollection' operation.  Here is a javascript example:
https://stackoverflow.com/questions/38919724/sharepoint-how-to-show-appendonlyhistory-on-a-display-t...