Comments count on news article Office 365 SharePoint 2013

Hi All,

We have a requirement to get the "count of comments" on news articles and display it in another webpart. Since I'm using XML viewer webpart to fetch these details, I would like to understand if there is any REST/JSOM call available to achieve this functionality.

Please note that none of the api/methods defined in "_vti_bin/SocialDataService.asmx" are solving our purpose.

I think SocialDataService.asmx get comments count when comments are posted using Tag&Notes webpart. Since tags and notes are deprecated in 2013 office 365, we are unable to retrieve comments count using the existing APIs.

I've used design manager to design my page layout with the comments field on it. snippet for comments field : 

<div data-name="Page Field: Comments"><!--CS: Start Page Field: Comments Snippet--><!--SPM:<%@Register Tagprefix="PageFieldNoteField" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>--><!--MS:<PageFieldNoteField:NoteField FieldName="9da97a99-1d9i-4a77-98d3-4bc10456e798" runat="server">--><!--PS: Start of READ-ONLY PREVIEW (do not modify)--><div align="left" class="ms-formfieldcontainer"><div class="ms-formfieldlabelcontainer" nowrap="nowrap"><span class="ms-formfieldlabel" nowrap="nowrap">Comments</span></div><div class="ms-formfieldvaluecontainer"><div class="ms-rtestate-field">Comments field value.</div></div></div><!--PE: End of READ-ONLY PREVIEW--><!--ME:</PageFieldNoteField:NoteField>--><!--CE: End Page Field: Comments Snippet-->
</div>
February 13th, 2015 6:16am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics