Creating a calendar event with showAs: unknown causes Outlook Web to crash when editing the event

Dominic Mazzoni 21 Reputation points
2022-11-15T22:17:49.213+00:00

I discovered that if I try to create a new calendar event and I set "showAs": "unknown", the Graph API request succeeds, but when I try to edit that event in Outlook Web, I get an error.

To repro, just try to create an event with "showAs": "unknown". Here's some minimal Python code to demonstrate it; the only thing you'll have to fill in is the access token.

url = 'https://graph.microsoft.com/v1.0/me/calendar/events'	  
headers = {'Authorization': 'Bearer ' + access_token,  
           'Content-Type': 'application/json'}  
data = """                                                                                                
    {                                                                                                     
      "end": {                                                                                            
        "dateTime": "2022-11-15T13:00:00",                                                                
        "timeZone": "Pacific Standard Time"                                                               
      },                                                                                                  
      "isAllDay": false,                                                                                  
      "start": {                                                                                          
        "dateTime": "2022-11-15T12:30:00",                                                                
        "timeZone": "Pacific Standard Time"                                                               
      },                                                                                                  
      "subject": "Who wants to crash outlook?",                                                           
      "showAs": "unknown"                                                                                 
    }                                                                                                     
"""  
r = requests.post(url, headers=headers, data=data)  
print(r.status_code)  
print(json.dumps(r.json(), indent=4))  

After running that code, click on the newly created event in Outlook (web), then Edit, then click More options.

I get the "Something went wrong" page with this error:

ErrorType: Component  
UTC Date: 2022-11-15T22:05:59.924Z  
Puid: 100320021E9972D6  
Client Id: A15DCED782B44A7EA5E96B198653DF55  
Session Id: 2ce57ae3-520a-4434-b67f-c10927b8b242  
Client Version: 20221104009.06  
BE Server: MN2PR13MB2638  

If I change "showAs" to "busy", "free", "oof", or anything else in the spec, everything works fine.

If I change "showAs" to "bogus" or 123 or anything that isn't one of the valid enum values, I get a MS Graph error (as expected).

Only "unknown" seems to cause a problem, as the Graph API happily accepts it, but Outlook crashes.

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

Accepted answer
  1. Bhanu Kiran 3,526 Reputation points
    2022-11-16T11:19:22.123+00:00

    Hello @Dominic Mazzoni ,

    After reproducing this issue, I understand that this requires further investigating with the help of logs, I would recommend you to raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better. You can raise support ticket from:
    http://aad.portal.azure.com/ or https://admin.microsoft.com/#/support/requests .

    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

0 additional answers

Sort by: Most helpful