简体   繁体   中英

Searching for messages with categories in Office 365 REST API

I'm trying to find all messages that have a non-empty category list, using Office 365 REST API, using the following request:

/api/v2.0/me/messages?$search=%22Categories:-[]%22

This doesn't seem to work though: it returns an empty result set. When I run the same query in Outlook 2016 UI, it does return results. Is it not supported or is their something wrong with the query?

As my test, using the following format can get the non-empty category list. endpointUri + "/Me/Messages?$search=%22category:%22". The search field is 'category', and add nothing behind the colon. Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM