I am calling this endpoint: /users/{email-address}/mailFolders/Inbox/messages?$select=isRead,hasAttachments,subject,from,bodyPreview,receivedDateTime&$top=25&search="{search-term}"&$count=true
the response only returns @odata.context
, @odata.nextLink
, and value
.
When removing the $search
parameter from the query, the response returns @odata.count
as well.
I am using the @odata.count
to calculate how many pages of results there are. I would prefer to not use the skipToken
and only use $top
and $skip
to paginate the results.
Anyone else encounter this before/have a workaround?
https://stackoverflow.com/questions/65348302/microsoft-graph-api-odata-count-not-returned-when-using-search-parameter-on-me December 18, 2020 at 05:01AM
没有评论:
发表评论