Webhook trigger on delete of event ?

Utkarsh Prashar 40 Reputation points
2024-04-16T09:17:44.49+00:00

Hello,

Is there any trigger available when a event in outlook is deleted?

We are looking to call a webhook when a event is deleted in outlook, any suggestions

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,626 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. awijekoon 950 Reputation points Microsoft Vendor
    2024-04-28T19:45:07.0233333+00:00

    Hello Utkarsh,

    you can create graph "deleted" subscription events as below. please refer this documentation https://learn.microsoft.com/en-us/graph/api/subscription-post-subscriptions?view=graph-rest-1.0&tabs=http#contact-event-and-message

    POST https://graph.microsoft.com/v1.0/subscriptions
    Content-type: application/json
    {
        "changeType": "Deleted",
        "notificationUr:"{notification_url}",
        "resource": "users/{user_id}/events",
        "expirationDateTime": "2024-04-30T00:00:00Z",
        "clientState": "secretClientValue"
    }
    
    0 comments No comments