question

simoffoncodex07-4652 avatar image
0 Votes"
simoffoncodex07-4652 asked JanardhanaVedham-MSFT commented

Update Calendar Event without sending notifications to attendees

I am using graph api to update my existing calendar event but with every single update my users are getting emails for it; say if I am adding a new attendee then api should not send email notifications to all of the existing attendees.

microsoft-graph-calendarmicrosoft-graph-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JanardhanaVedham-MSFT avatar image
0 Votes"
JanardhanaVedham-MSFT answered JanardhanaVedham-MSFT commented

Hi @simoffoncodex07-4652 ,

I have verifed the above mentioned case of updating an exising calendar event using Graph API and Update Event API is working as expected as per my testing.

Please note the below points:

  1. As documented here, if you want to update the meeting attendees then only include the attendees property in the request body. Please ensure to include both existing meeting attendees and new meeting attendees while updating the existing calender event as shown in the below example:

    196944-image.png

Example :

A Sample request body of new event creation :

 POST https://graph.microsoft.com/v1.0/me/calendar/events
 {
     "subject": "Meeting Test",
     "body": {
         "contentType": "HTML",
         "content": "This is Test Meeting"
     },
     "start": {
         "dateTime": "2022-04-29T04:00:00",
         "timeZone": "Pacific Standard Time"
     },
     "end": {
         "dateTime": "2022-04-29T12:00:00",
         "timeZone": "Pacific Standard Time"
     },
     "location": {
         "displayName": "Harry's Bar"
     },
     "attendees": [
         {
             "emailAddress": {
                 "address": "jvedham@o365XXXX.onmicrosoft.com"
             },
             "type": "required"
         },
         {
             "emailAddress": {
                 "address": "demouser@o365XXXX.onmicrosoft.com"
             },
             "type": "required"
         }
     ]
 }

A Sample request body of update event :

 PATCH https://graph.microsoft.com/v1.0/me/calendar/events/{Meeting-ID}
 {
     "attendees": [
         {
             "emailAddress": {
                 "address": "jvedham@o365XXXX.onmicrosoft.com"
             },
             "type": "required"
         },
         {
             "emailAddress": {
                 "address": "demouser@o365XXXX.onmicrosoft.com"
             },
             "type": "required"
         },
         {
             "emailAddress": {
                 "address": "sampleuser@o365XXXX.onmicrosoft.com"
             },
             "type": "required"
         }
     ]
 }

2.If you are updating any of the meeting properties such as subject, meeting body, importance,isOnlineMeeting ..etc then it will be considered as change to the existing meeting and all the meeting attendees will be notifed with the latest meeting update. This is the expected behaviour and working as designed.

Hope this helps.

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



image.png (23.9 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @simoffoncodex07-4652 ,

Can you please provide us an update on this?.

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


0 Votes 0 ·