Django - Ms Graph Create Online Teams Meetings

Mark Brown 1 Reputation point
2022-05-12T10:29:53.217+00:00

Hi,

I have created an app using the Build Python Django apps with Microsoft Graph tutorial.

https://learn.microsoft.com/en-us/graph/tutorials/python

The tutorial allows me to create new events in my calendar through the app.

Rather than create a new calendar appointment I want to be able to create a new Teams appointment.

I presume I would need to edit the graph_helper.py file to create online meetings rather than standard calendar events but I am unsure on what I need to change.

Appreciate any help or guidance anyone can offer.

Thanks,

Mark

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mark Brown 1 Reputation point
    2022-05-12T23:23:53.137+00:00

    Managed to get this working, just needed to add the following to the graph helper.py file.

    In the new_event varaiable

    "IsOnlineMeeting": True,
    "onlineMeetingProvider": "teamsForBusiness"

    Then in the new_event['body']

    "contentType":"HTML"

    0 comments No comments

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.