Can a MS outlook calendar meeting ping a notification that can be listened to by an external PHP app?

(Andy) Dragos Comanescu 1 Reputation point
2023-11-20T10:04:02.7466667+00:00

We are building an external PHP system where we need that when a user creates an Outlook Calendar meeting, that would send a ping or some sort of notification call to our external app that will "capture" or listen to that call and it will do something with it.

Note: we are already using msgraph-sdk-php in our app, so if that has some options they could be used.

Thanks a lot for any information.

Have a great day.

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

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 31,976 Reputation points
    2023-11-21T09:59:21.1466667+00:00

    Hi @(Andy) Dragos Comanescu

    You can create an event subscription for your users, and you will receive notifications when your users create new calendar meetings.

    POST https://graph.microsoft.com/v1.0/subscriptions
    Content-type: application/json
    
    {
       "changeType": "created",
       "notificationUrl": "https://webhook.azurewebsites.net/api/send/myNotifyClient",
       "resource": "users/{id}/events",
       "expirationDateTime":"2023-12-20T18:23:45.9356913Z"
    }
    

    Hope this helps.

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