Field Name "_LikeCount and _CommentCount" is not recognize in Graph Explorer

Copper Contributor

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!

0 Replies