I see you're having trouble with the Microsoft Graph API where the meeting link isn't being generated. Based on the image you've provided, it looks like you're using the correct JSON structure for creating an event. However, to ensure that an online meeting link is generated, you need to include the isOnlineMeeting
property set to true
and specify the onlineMeetingProvider
as teamsForBusiness
in your JSON payload.
Here's an example of how your request body should look:
{
"subject": "Scheduling Meeting Using Microsoft Graph API",
"body": {
"contentType": "HTML",
"content": "Scheduling using Microsoft Graph API"
},
"start": {
"dateTime": "2024-07-22T15:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2024-07-22T16:00:00",
"timeZone": "Pacific Standard Time"
},
"location": {
"displayName": "Online"
},
"attendees": [
{
"emailAddress": {
"address": "attendee@example.com",
"name": "Attendee Name"
},
"type": "required"
}
],
"allowNewTimeProposals": true,
"isOnlineMeeting": true,
"onlineMeetingProvider": "teamsForBusiness"
}
Make sure that the isOnlineMeeting
property is set to true
and that you have the onlineMeetingProvider
property set to teamsForBusiness
. This will tell the API to generate a Teams meeting link.
If you've already done this and the link is still not being generated, it could be an issue with the Teams client version. There have been reports of the link generated by Microsoft Graph API not being supported in the new Teams version, prompting users to switch to classic Teams to open the link⁷.
Additionally, ensure that you have the necessary permissions granted for your application in the Azure portal and that the user has Teams enabled for their account.