Get events that have an custom property set by an add-in

前端 未结 2 999
小鲜肉
小鲜肉 2020-12-20 04:23

This question is a follow-up to Get custom property set in Outlook Add-In via Microsoft Graph.

My Outlook Office.js add-in is adding some custom properties to an ev

相关标签:
2条回答
  • 2020-12-20 05:03

    After several tries I found a way to filter for events/messages that have a custom property regardless it's value:

    https://graph.microsoft.com/v1.0/me/events/?$filter=singleValueExtendedProperties/any(ep: ep/id eq 'String {00020329-0000-0000-C000-000000000046} Name cecp-b7ff386a-234a-4a38-84bc-e5ae4684b7af' and ep/value ne null)
    

    with the added important part being and ep/value ne null, whereas something like and ep/value ne 'fooo' didn't work, it just returned everything.

    Above filtering works also for filtering of events for which we want subscribe to push events.

    0 讨论(0)
  • 2020-12-20 05:06

    I believe the filter query should be

    PropertyId eq ....

    instead of Id eq ...

    0 讨论(0)
提交回复
热议问题