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 | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Answer accepted by question author
  1. CarlZhao-MSFT 46,406 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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.