How to add attendees to event without sending notifications to existing attendees?

Ofek Kochavi 20 Reputation points
2024-05-20T14:36:28.8333333+00:00

I am trying to use the graph api through Zapier (third party automation flow tool). I am trying to update an existing outlook event with new attendees. The current outlook part of my pipeline looks like this:

  1. GET event body from outlook using API request.
  2. Use python code to fetch the event body JSON and add attendees to it. Then return the new event body with new attendees
  3. Send a PATCH request to event url with the updated event body as the body of the request.

When I do this, all attendees get an updated notification every time a new attendee is added to the event.

How can I change this so existing attendees do not get a notification when a new attendee is added?

Outlook
Outlook
A family of Microsoft email and calendar products.
3,221 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,060 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 38,936 Reputation points
    2024-05-21T09:07:29.83+00:00

    Hi @Ofek Kochavi

    I recommend that you only include the attendees property in the request body. This way it will only send notifications to newly added attendees.

    User's image

    PATCH https://graph.microsoft.com/v1.0/me/events/{event_id}
    
    {
        "attendees": [
         attendee 1,
         attendee 2,
         attendee 3,
          ......
         new attendee 1,
         new attendee 2,
          ......
        ]
    }
    

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful