Share via

Sharepoint GetComments

Mastahh ☺ 21 Reputation points
2021-01-04T15:50:41.453+00:00

Hello,
I'm developing utility to migrate data from old SP into new SP.
All functionality already finished, but i have faced with problem, I cannot get Commnets from Old SP 2013 and also cannot access comments assigned to Items in my list.
Is there any way to do it using CSOM?

Microsoft 365 and Office | SharePoint Server | Development

Answer accepted by question author

Baker Kong-MSFT 3,801 Reputation points Moderator
2021-01-06T07:34:04.047+00:00

Hi @Mastahh ☺ ,

For the new SP comments, you can access it through SharePoint Rest API:
_api/web/Lists(guid'8f2bxxxxxe3f')/Items(1)/comments

Post a comment:

53894-image.png

You may also take a reference of below blog:

As for the old sp comments, i created an issue trace list and it truly has a built-in comment column. If that's what you want to operated, you can access it via SPServices or directly get it via web service (we cannot pull list item historical values using the REST API)

Best Regards,
Baker Kong


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.