Search code examples
microsoft-graph-apimicrosoft-graph-calendar

Send notification email to attendees when creating new event to o365 calendar


I am using MS Graph API to create events (meetings) into peoples calendars. We used to have on-premise Office and creating an event would automatically notify the persons about a new calendar event.

After migrating to o365 we started using Graph- Calendar API to create these events. Now the attendees get no email notification at all.

When you open the event from the outlook calendar, the To- field is empty. My guess is that this could be the cause, but I am not sure at all.

Here is an example json I am sending to the api:

{   Id:null,
Subject: Test,
Body:
    {ContentType:html,Content:Hey, <br/><br/>\\r\\nWhy you no send email!},
ShowAs:busy,
Attendees:[
{EmailAddress:{
    address:Matti.Lindroth@mycompany.fi,
    name:Lindroth Matti},
    Type:required}],
Start:
    {
    DateTime:2019-10-21T08:00:00,
    TimeZone:FLE Standard Time
    },
ResponseRequested:true,
IsOrganizer:true,
Organizer: 
    {EmailAddress:{
        address:Matti.Lindroth@mycompany.fi,
        name:Lindroth Matti}
    },
End:
    {
    DateTime:2019-10-21T08:30:00,
    TimeZone:FLE Standard Time
    },
    Sensitivity:null

}

Any help is much appreciated.


Solution

  • I noticed that you are both the organizer and the attendee in your example. In this case the server would not send you a meeting request, since you're the organizer! If you add someone else in your attendees collection they will receive a meeting request.