question

MarkBrown-4463 avatar image
0 Votes"
MarkBrown-4463 asked saldana-msft edited

Django - Ms Graph Create Online Teams Meetings

Hi,

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

https://docs.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-graph-teamworkmicrosoft-graph-all
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MarkBrown-4463 avatar image
0 Votes"
MarkBrown-4463 answered

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"


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.