Graph Webhook Notification for Events with filtering

Daan 1 Reputation point
2023-01-05T16:25:55.987+00:00

I am trying to subscribe for notifications with filtering because I am only interested in receiving creates, changes or deletes of events for a specific user for today.

I tried a lot of different approaches but I am failing to create a subscription when i add a filter. Can someone help me?

I tried the following on the endpoint https://graph.microsoft.com/v1.0/subscriptions and also on https://graph.microsoft.com/beta/subscriptions:

"resource":"users/{id}/events?$filter=start/dateTime ge '2023-01-05T00:00:00Z'"

But getting the following error:
276546-image.png

Microsoft Graph Notifications API
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
589 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh-MSFT 3,166 Reputation points Microsoft Employee
    2023-01-05T21:32:50.453+00:00

    Hello @Daan

    Thanks for reaching out!

    Based on my research, currently change notifications for outlook events do not support $filter OData query parameter to narrow down notifications. Refer this documentation to know about Supported resources.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.