5

Could anybody help me with creating an event with Microsoft Graph API.

Desirable behavior is to add a link to the event which is clickable in majority of the calendar clients. Here is an example of the event payload I’ve used:

{
    ...
    "body": {
        "ContentType": "HTML",
        "Content": "<a href=\"https://somelink.com\">Start Online Meeting</a>"
    },
    "onlineMeetingUrl": "https://somelink.com"
}

This payload is sent as POST request to https://graph.microsoft.com/v1.0/me/events

current response is:

{ 
 ...
 'onlineMeetingUrl': null,
 ...
}

and details of the event are not clickable in the calendar app and displayed like plain text

Start Online Meeting

or is converted to

Start Online Meeting <https://somelink.com>

in Google calendar

Thanks for help!

nelak
  • 380
  • 3
  • 10
Lana Dz
  • 71
  • 6
  • Possible duplicate of ['onlineMeetingUrl' is null after call Create Event in Graph api](https://stackoverflow.com/questions/49143347/onlinemeetingurl-is-null-after-call-create-event-in-graph-api) – nelak Jun 06 '18 at 02:47
  • Are you inviting the Gmail user? – Stephan Jan 07 '21 at 20:57

1 Answers1

0

Can you try escaping double quotes character in value of Content property and wrap the anchor tag in div element? Example below:

{ "body": { "ContentType": "HTML", "Content": "<div><a href=\"http://bing.com\">bing</a></div>" } }

  • having the same issue, escaping the quotes solves the display issue but it doesn't solve the onlinemeetingurl response that stays null – baywet Feb 28 '17 at 21:22