SharePoint modern pages - using API to post comments with specified date, author, etc.

%3CLINGO-SUB%20id%3D%22lingo-sub-1749278%22%20slang%3D%22en-US%22%3ESharePoint%20modern%20pages%20-%20using%20API%20to%20post%20comments%20with%20specified%20date%2C%20author%2C%20etc.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1749278%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22question-body%20post-body%22%3E%3CP%3EFor%20my%20ongoing%20project%2C%20I%20am%20attempting%20to%20post%20the%20comment%20to%20SharePoint%20modern%20page%20using%20the%20the%20below%20REST%20API.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%2F_api%2Fweb%2Flists('listID')%2FGetItemById(1)%2FComments%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20able%20to%20post%20the%20comments%2C%20but%20while%20posting%2C%20I%20am%20not%20able%20to%20edit%20any%20property%20of%20the%20comment%20besides%20the%20comment%20text%20like%20author%2C%20date.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20now%20possible%20to%20alter%20the%20date%20published%2C%20author%20info%2C%20etc.%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1749278%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ecomment%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1940081%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20modern%20pages%20-%20using%20API%20to%20post%20comments%20with%20specified%20date%2C%20author%2C%20etc.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1940081%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F821902%22%20target%3D%22_blank%22%3E%40PrashantBhojani%3C%2FA%3E%26nbsp%3Bhello%2C%20i%20have%20a%20similar%20scenario%2C%20i%20would%20like%20to%20update%20the%20comments%20on%20a%20list%20item%20using%20an%20http%20call%20in%20power%20automate%2C%20but%20i'm%20not%20able%20to%20make%20it%20works.%20could%20you%20please%20provide%20how%20does%20your%20rest%20api%20works%3F%20thanks%20in%20advance!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2040042%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20modern%20pages%20-%20using%20API%20to%20post%20comments%20with%20specified%20date%2C%20author%2C%20etc.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2040042%22%20slang%3D%22en-US%22%3E%3CP%3EDid%20you%20find%20way%20how%20to%20post%20comments%20with%20specific%20date%20and%20user%3F%3C%2FP%3E%3CP%3EI%20need%20migrate%20comments%20from%20old%20sharepoint%20and%20stuck%20now%20with%20this%20problem.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hello,

 

For my ongoing project, I am attempting to post the comment to SharePoint modern page using the the below REST API.

 

/_api/web/lists('listID')/GetItemById(1)/Comments

 

I am able to post the comments, but while posting, I am not able to edit any property of the comment besides the comment text like author, date.

 

Is it now possible to alter the date published, author info, etc.?

 

Thanks in advance!

2 Replies

@PrashantBhojani hello, i have a similar scenario, i would like to update the comments on a list item using an http call in power automate, but i'm not able to make it works. could you please provide how does your rest api works? thanks in advance!!

Did you find way how to post comments with specific date and user?

I need migrate comments from old sharepoint and stuck now with this problem.