office 365 Update event not generating online meeting url for msteams

Bharath Padmanaban 21 Reputation points
2022-01-11T03:01:22.007+00:00

I'm using the update event API to update the event time with online meeting as true. and provider as ms teams.
when the event already contains online meeting url then on update event we are getting online meeting as null.
when the event does not contains online meeting url then on update event we are getting online meeting with correct value.

sample request body:

{
"Subject": "Subject",
"Body": {
"ContentType": "HTML",
"Content": "some html content"
},
"Locations": [
{
"DisplayName": "test"
}
],
"Attendees": [
{
"EmailAddress": {
"Address": "XXX@Piepel .com"
},
"Status": {
"Response": "accepted"
},
"Type": "Required"
},
{
"EmailAddress": {
"Address": "xxx@X .com"
},
"Status": {
"Response": "none"
},
"Type": "Required"
}
],
"Start": {
"DateTime": "2022-01-12T03:00:00+00:00",
"TimeZone": "UTC"
},
"End": {
"DateTime": "2022-01-12T04:00:00+00:00",
"TimeZone": "UTC"
},
"IsAllDay": null,
"IsOnlineMeeting": true,
"OnlineMeetingProvider": "teamsForBusiness"
}

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,716 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,886 questions
{count} votes

Accepted answer
  1. JanardhanaVedham-MSFT 3,536 Reputation points
    2022-01-12T08:28:51.197+00:00

    Hi @Bharath Padmanaban ,

    I am able to replice this issue at my end and this is causing due to Body property in the request body where "isOnlineMeeting" is true during the update event. Update event is working fine as expected if we remove "Body" property from the request body and the OnlineMeeting" is continued to be enabled without any issue. Please find example working JSON request body and also the corresponding documentation links for your reference.

    Also, as mentioned in this documentation the recomendation is that, supply only the values for properties that should be updated in the request body. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values.

    Example Working JSON Request body (Sample Request) :

    PATCH https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/calendar/events/{id}  
    {  
        "Subject": "Subject",  
        "Locations": [  
            {  
                "DisplayName": "test"  
            }  
        ],  
        "Attendees": [  
            {  
                "EmailAddress": {  
                    "Address": "demouser@o365XXXX.onmicrosoft.com"  
                },  
                "Status": {  
                    "Response": "accepted"  
                },  
                "Type": "Required"  
            },  
            {  
                "EmailAddress": {  
                    "Address": "Testuser@o365XXXX.onmicrosoft.com"  
                },  
                "Status": {  
                    "Response": "none"  
                },  
                "Type": "Required"  
            }  
        ],  
        "Start": {  
            "DateTime": "2022-01-13T06:00:00+00:00",  
            "TimeZone": "UTC"  
        },  
        "End": {  
            "DateTime": "2022-01-13T07:00:00+00:00",  
            "TimeZone": "UTC"  
        },  
        "IsAllDay": null,  
        "IsOnlineMeeting": true,  
        "OnlineMeetingProvider": "teamsForBusiness"  
    }  
    

    Documentation Source on this issue: :

    https://github.com/microsoftgraph/microsoft-graph-docs/issues/10618
    https://learn.microsoft.com/en-us/graph/api/event-update?view=graph-rest-1.0&tabs=http#notes-for-updating-specific-properties

    Hope this helps.

    If the answer is helpful and your question is resolved, please click "Accept Answer" and kindly upvote it ,so that it will be helpful to the other community users. If you have any further questions about this answer, please click "Comment".

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful