Forum Discussion
Post comment to a modern site page using REST api
Using this endpoint:
And this listitementitytypefullname:
You need to use Microsoft.SharePoint.Comments.comment as listitementitytypefullname instead of SP.Data.SitePagesItem.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
You need to use Microsoft.SharePoint.Comments.comment as listitementitytypefullname instead of SP.Data.SitePagesItem.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- mattchowellIron Contributorganeshsanap Thanks - I did initially try with Microsoft.SharePoint.Comments.comment and it failed probably due to some other issue, but now it works. Do you know if it's possible to reflect a user's name instead of the app name as the author, and if so how?