Forum Discussion
John Ryan Robles
Sep 29, 2021Copper Contributor
Field Name "_LikeCount and _CommentCount" is not recognize in Graph Explorer
Hi I'm trying to query most liked and commented news in SharePoint Site Pages however when trying to order descending using _LikeCount and _CommentCount i received this error:
A provided field name is not recognized
I don't have any issue with other fields except these two.
https://graph.microsoft.com/v1.0/sites/{ID}/lists/Site Pages/items?$filter=fields/PromotedState eq 2&expand=fields($select=createdDateTime,BannerImageUrl,PromotedState,FileLeafRef,AuthorLookupId,Modified,_CommentCount,_LikeCount,Title,Description,LinkTitle)&$top=5&$orderby=fields/_LikeCount desc
Any help is appreciated. Thanks!
No RepliesBe the first to reply