Sharepoint Online - comments

jaWa 326 Reputation points
2021-11-11T10:59:51.37+00:00

Hi there,

How can authors edit comments afterwards (in the case of typing errors)?

Thank you

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Echo Du_MSFT 17,341 Reputation points
    2021-11-12T02:06:19.117+00:00

    Hi @jaWa ,

    Nice to meet you again.

    Comments follow the permission settings inherent in SharePoint Online and Microsoft Lists.

    • Users with read-only permission can only view comments.
    • Those with list edit permission can make comments as well as delete comments
    • Editing comments is currently not possible.

    According to my research, SharePoint Online does not currently support editing comments, it is by design. You can refer to the following workaround:

    • Delete the original comment and create a new comment

    148721-comment1.jpg

    • Click Reply under the comment and fill in the information you want to modify.

    148540-comment2.jpg

    148731-comment3.jpg

    For more information, please see the "SharePoint Online: All you need to know about Commenting in Lists" Blog.

    Thanks,
    Echo Du

    ==============================
    Updated Answer ==============================

    Hi @jaWa ,

    We can use REST API to retrieve comments, and manage comments.

    To get all comments from a modern page, make a Get request to:

    #A page which has the id "xxx"  
    #/_api/web/lists/GetByTitle('Site Pages')/GetItemById("xxx")/Comments  
    
    #For example:  
    /_api/web/lists/GetByTitle('Site Pages')/GetItemById(22)/Comments  
    

    149291-s1.jpg

    149256-s2.jpg

    To get a specific comment from a modern page, make a Get request to:

    #Where yyy is the id of the comment.   
    /_api/web/lists/GetByTitle('Site Pages')/GetItemById("xxx")/Comments("yyy")  
    
    #For example:  
    /_api/web/lists/GetByTitle('Site Pages')/GetItemById(22)/Comments(1)  
    

    Since each comment or reply gets a unique id, the method is same for deleting both.
    To delete a specific comment from a modern page, make a Delete request to:

    #Where yyy is the id of the comment.   
    /_api/web/lists/GetByTitle('Site Pages')/GetItemById("xxx")/Comments("yyy")  
    
    #For example:  
    /_api/web/lists/GetByTitle('Site Pages')/GetItemById(22)/Comments(1)  
    

    1.Use Chrome browser and install the "SP REST Client" extension

    149273-s4.jpg

    2.Pin the "SP REST Client" extension

    149226-s5.jpg

    3.Go to the Site Pages library page and switch to classic mode.

    149140-s6.jpg

    4.Then click the "SP REST Client" extension.

    149227-s7.jpg

    5.On the SharePoint REST Client page, entry the below REST API to the Url field:

    #Where yyy is the id of the comment.   
    /_api/web/lists/GetByTitle('Site Pages')/GetItemById("xxx")/Comments("yyy")  
    

    6.Click SEND button

    149228-s8.jpg

    7.Go to the corresponding modern page and you will find that the comment has been deleted.

    149283-s9.jpg

    For more information, please see "Working with the Page Comments REST API in SharePoint Communication sites" article.

    Thanks,
    Echo Du

    ==============================================

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.


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.