Customizing Email Body for Meeting Requests via Microsoft Graph API

Shady Khaled 20 Reputation points
2024-06-02T08:36:51.7366667+00:00

I am integrating the Microsoft Graph API into my application to automate the process of sending meeting requests. While I understand that using the Outlook calendar API to create events (via the POST /me/events endpoint) ensures that Outlook recognizes them as meeting requests with options for recipients to "Accept," "Decline," or mark as "Tentative," I am facing a specific challenge:

Requirement: My application needs to send a unique and personalized email body for each attendee. This email body contains specific information tailored to each recipient, which is crucial for our use case.

Issue: The create event approach does not allow for the customization of the email body sent with the meeting invite. When using the sendMail endpoint with iCalendar (ICS) content, the emails are viewed as attachments rather than meeting requests in Outlook.

Questions:

  1. How can I send meeting requests via the Microsoft Graph API that are recognized as such in Outlook, while including a customized email body for each attendee within the meeting request?
  2. Are there any specific configurations, properties, or API parameters that would allow for this level of customization?
  3. Can I use Content-ID (CID) links to open the ICS attachment within the email? If so, is it applicable for this scenario, and what would I need to implement it?

Any detailed guidance, examples, or references to documentation on how to achieve these requirements would be greatly appreciated.

Thank you for your assistance.

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

1 answer

Sort by: Most helpful
  1. CharanyaB-MSFT 1,891 Reputation points Microsoft Vendor
    2024-06-03T15:41:02.2+00:00

    Hello @Shady Khaled,

    Thank you for reaching Microsoft!

    The create event API, based on my testing, successfully sends emails to attendees once the event is created. To enter the message content associated with the event, please use the event's body property. Refer to the screenshots provided below.User's image

    The email has been successfully sent to the attendee and can be found in Outlook.

    User's image

    Documentation reference: https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http

    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.


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.