Add attachment in meeting event

Dipika Das 141 Reputation points
2022-12-27T04:23:58.827+00:00

Hi,

I want to add attachment while create the meeting event which can be visible by every users added with in that meeting. I tried to use below api's, but
the problem is attachment is adding only that particular event id i.e organizer, for the other users attachment is not showing. But when I'm creating any meeting from "Microsoft Teams" itself
all the users is getting email with the attachment. Can anyone help me out is there any other api or way to achieve this.

Thanks in Advance

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Gopinath Chennamadhavuni 2,446 Reputation points
    2022-12-27T06:55:30.92+00:00

    Hi @Dipika Das ,

    Hope you are doing well.

    I am able to reproduce you issue in my test tenant. As per my research, it is not supported to create an event along with attachments within a single request.
    As a workaround, create the event without attendees, then create the attachment and update the event with the attendees they'll receive the event e-mail with all the attachments.

    Please follow the below steps:

    1. Create an event (excluding attendees) via POST to https://graph.microsoft.com/v1.0/me/calendars/{calendarId}/events
    2. Attach a file to the event via POST to https://graph.microsoft.com/v1.0/me/calendars/{calendarId}/events/{eventId}/attachments
    3. Update the event from step 1 with the attendees via PATCH to https://graph.microsoft.com/v1.0/me/calendars/{calendarId}/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.

    0 comments No comments

  2. Dipika Das 141 Reputation points
    2022-12-27T07:07:01.797+00:00

    Hi GopinathChennamadhavuniMSFT-3165,
    Greetings,

    Thanks for your quick response. Actually, I want to add attachment in the event by using some common id that will be same for every user within that event for example iCallUID. The process you mentioned it might work but to achieve this I've to call different Api's thrice. So, please check if any ither way otherwise I'll use this option.

    Thanks & Regards
    Dipika

    0 comments No comments

Your answer

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