I am creating event with isOnlineMeeting is set to true but getting isOnlineMeeting = false and onlineMeeting = null

faisalprotonshub 0 Reputation points
2023-03-09T08:09:09.06+00:00

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

Method: POST

Headers: Authorization: Bearer token

Content-Type: application/json

Prefer: outlook.timezone="UTC"

request:

{
  "allowNewTimeProposals": true,
  "isOnlineMeeting": true,
  "onlineMeetingProvider": "teamsForBusiness",  
  "subject": "Let's go for lunch",
  "body": {
    "contentType": "HTML",
    "content": "Does noon work for you?"
  },
  "start": {
      "dateTime": "2023-03-10T07:38:40.055Z",
      "timeZone": "UTC"
  },
  "end": {
      "dateTime": "2023-03-10T08:38:40.055Z",
      "timeZone": "UTC"
  }
}

Response: 
{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('outlook_55862XXXX31CC5D%40outlook.com')/events/$entity",
    "@odata.etag": "W/\"SC5hEOO8d06oTPTXYQ3KgQACJZk8HA==\"",
    "id": "AQMkADAwATM0MXXXXXXXXXXXXXXXLTAwCgBGAAADaGMZWeCJk0Gv_gf9yfLRNAcASC5hEOO8d06oTPTXYQ3KgQAAAgENAAAASC5hEOO8d06oTPTXYQ3KgQACJZxMRwAAAA==",
    "createdDateTime": "2023-03-09T08:00:45.7837283Z",
    "lastModifiedDateTime": "2023-03-09T08:00:45.8461717Z",
    "changeKey": "SC5hEOO8dXXXXXX3KgQACJZk8HA==",
    "categories": [],
    "transactionId": null,
    "originalStartTimeZone": "UTC",
    "originalEndTimeZone": "UTC",
    "iCalUId": "040000008200E00074C5B710XXXXXXXXXXXXXXXXXXXXXXXX00001000000012712DDC461B124E9BB1E8C63B1F7CEC",
    "reminderMinutesBeforeStart": 15,
    "isReminderOn": true,
    "hasAttachments": false,
    "subject": "Let's go for lunch",
    "bodyPreview": "Does noon work for you?",
    "importance": "normal",
    "sensitivity": "normal",
    "isAllDay": false,
    "isCancelled": false,
    "isOrganizer": true,
    "responseRequested": true,
    "seriesMasterId": null,
    "showAs": "busy",
    "type": "singleInstance",
    "webLink": "https://outlook.live.com/owa/?itemid=XXXXXXXXXXXXXXXXX&exvsurl=1&path=/calendar/item",
    "onlineMeetingUrl": null,
    "isOnlineMeeting": false,
    "onlineMeetingProvider": "unknown",
    "allowNewTimeProposals": true,
    "occurrenceId": null,
    "isDraft": false,
    "hideAttendees": false,
    "responseStatus": {
        "response": "organizer",
        "time": "0001-01-01T00:00:00Z"
    },
    "body": {
        "contentType": "html",
        "content": "<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n</head>\r\n<body>\r\nDoes noon work for you?\r\n</body>\r\n</html>\r\n"
    },
    "start": {
        "dateTime": "2023-03-10T07:38:40.0550000",
        "timeZone": "UTC"
    },
    "end": {
        "dateTime": "2023-03-10T08:38:40.0550000",
        "timeZone": "UTC"
    },
    "location": {
        "displayName": "",
        "locationType": "default",
        "uniqueIdType": "unknown",
        "address": {},
        "coordinates": {}
    },
    "locations": [],
    "recurrence": null,
    "attendees": [],
    "organizer": {
        "emailAddress": {
            "name": "outlook_XXXXX031CC5D@outlook.com",
            "address": "outlook_XXXXCC5D@outlook.com"
        }
    },
    "onlineMeeting": null
}
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,446 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. CarlZhao-MSFT 40,311 Reputation points
    2023-03-09T08:29:45.67+00:00

    Hi @faisalprotonshub

    This is because there is no online meeting information in your request body.

    User's image

    User's image

    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.


  2. CarlZhao-MSFT 40,311 Reputation points
    2023-03-09T09:33:28.6466667+00:00

    Hi @faisalprotonshub

    After further testing, I found that this may be caused by the fact that you are using a personal account. You must use a work/school account with an O365 license to create an event and enable it as an online meeting, as creating an online meeting with a personal account is not yet supported.

    Also, I tried your request body and it seems to be ok.

    User's image

    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.


  3. Dinesh Yadav 0 Reputation points
    2023-06-29T10:58:02.28+00:00

    My account is of application type, but I am still encountering the same issue. The event is created successfully with 'IsOnlineMeeting' set to False. Online events are only supposed to be created for a few users, but I am randomly getting 'IsOnlineMeeting' as False. Could you please help me with this?

    I am using Office 365 Sandbox E5 Seubscription

    0 comments No comments

  4. Dinesh Yadav 0 Reputation points
    2023-06-29T11:00:03.55+00:00

    User's image

    0 comments No comments

  5. Dinesh Yadav 0 Reputation points
    2023-06-29T11:01:31.9+00:00

    I am creating event with isOnlineMeeting is set to true but getting isOnlineMeeting = false and onlineMeeting = null with below endpoint "https://graph.microsoft.com/v1.0/users/{UserId}/events"

    Also My account is organization Type.

    User's image

    0 comments No comments