Event attachment issue for attendees

Malviya, Vishal 0 Reputation points
2023-02-10T20:31:08.3466667+00:00

Hi all ,
I am trying to create outlook meeting event with multiple attendee using following API :
POST https://graph.microsoft.com/v1.0/me/events
And for the same event adding an attachment as an organizer using :
POST https://graph.microsoft.com/v1.0/me/events/{eventID}/attachments
As per expectation the event with all the content & attachment data should be visible to organizer as well as to all attendees . But from the event "Attachment" is missing for all the attendees whereas it is coming as expected for organizer.
Do provide some solution to avoid this unrealistic behavior.
Thank you ,
Vishal Malviya

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

2 answers

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 Reputation points
    2023-02-10T23:49:58.2133333+00:00

    Hello @Malviya, Vishal

    Thanks for reaching out!

    I'm able to replicate this at my end. Per my understanding, sending of an updated invitation doesn't occur when an attachment is added to the existing event.

    As a workaround, you can update the event (by adding the attendees) post adding the attachments to the event. Please follow below steps for the same.

    Create an event (excluding attendees in request body), refer Create Event:

    POST https://graph.microsoft.com/v1.0/me/events
    

    Attach a file to the event, refer Add Attachment:

    POST https://graph.microsoft.com/v1.0/me/events/{eventId}/attachments
    

    Update the existing event with the attendees' array in request body, refer Update Event:

    PATCH https://graph.microsoft.com/v1.0/me/events/{eventId}
    

    Hope this helps.

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


  2. Palle Hansen 0 Reputation points
    2023-02-27T13:16:30.9633333+00:00

    If you add some text to the event body... for example: "file added", Then it works :0)

    0 comments No comments