Contents
In this blog I will explain how you can GET SharePoint list item comments using REST APIs. As comments are stored within the list schema itself and not with list items, it is not possible to fetch comments using $select with /items endpoint. However, you can get the list item comments using below endpoint:
Microsoft recently introduced a new feature of commenting in SharePoint Online lists and Microsoft lists. Using this feature users will be able to add and delete comments on list items. Users can view all comments on a list item and filter between views that show comments or activity related to an item in details pane.
How to hide comments on a SharePoint list?
By default, users will see a new comments pane alongside the list item form when they access a list. Users can toggle the comment pane visibility by clicking the comments icon. When you hide comments, the pane does not collapse. The comments pane will be closed by default for lists customized by Power Apps.
How to post a reply to a comment in SharePoint?
Adding ‘ ( )/replies’ to the end of the query string will post the comment as a reply to whatever ID is input into (All comments on a page have unique IDs like items in libraries do.
How is the get and post method used?
A fetch () method can be used with many type of reuqests such as POST, GET, PUT and DELETE. GET method using fetch API: In this example, we are going to use JSONPlaceholder which provides REST API get and post random data such as posts, users, etc.
How to get post by title in WordPress?
But for some reason when post with title not exist i get all posts back. How could get empty when no post exist and the post when it exist. Unfortunately it is not possible, but you can use slug instead. Slug is editable part of the URL when writing a post and they can represent title of the page (or it can be changed into this).
Is the SharePoint REST API a public API?
This endpoint is an addition to the SharePoint REST API, which means you will already be familiar with using it. I checked with Vesa Juvonen from Microsoft and he has confirmed this is indeed a public API, which means it can be used in third party solutions and is not something internal used only by Microsoft.