cancel
Showing results for 
Search instead for 
Did you mean: 

Post new comment using Sharepoint API

New Member

Post new comment using Sharepoint API

i have problem with sharepoint, i can't find correcte api to post new comment. and also i can't set value to "ParentItemID"

 

 

/_api/web/lists/GetByTitle('Liste de discussions')/items
 client.DefaultRequestHeaders.Add("X-HTTP-Method", "POST");
  obj.Body = PostText;
  obj.ContentTypeId = ContentTypeId;
  obj.ParentFolderId = IdDiscussion;
  obj.ParentID = Convert.ToInt32(IdDiscussion);
  obj.__metadata = new MetadataCommentes();
  obj.__metadata.type = MetadataTyp  
1 REPLY
Highlighted
Moderator

Re: Post new comment using Sharepoint API

Hello @mabroukm,

 

Thank you for reaching out to Constant Contact's API Support.

 

I'd like to clarify your request. The code you posted does not contain any of our API endpoints, nor does it contain any type of data that I would think someone would be submitting to a Constant Contact account. Can you verify what endpoint you are using when you submit this and what the result you are receiving back?


Regards,
Jimmy D.
Tier II API Support Engineer
Still need help?
You can post a new message in the Community or find us on Twitter Mon-Fri 8am - 8pm ET. We've got real people waiting to help you out. Click below to start a conversation!