I’m able to create Calendar Event in pega22 using Microsoft Outlook connecter, but my requirement is it should default to Teams meeting. i’m not finding a property or method inside outlook connecter for Teams meeting.
In Pega 22 Robot Studio, you can create a calendar event using the Outlook connector, but it doesn’t have a built-in option to make it a Teams meeting. This is because the Outlook connector uses older APIs that don’t support adding a Teams link directly. To create a Teams meeting, you need to use Microsoft Graph API, which allows you to create calendar events with Teams enabled. You’ll need to register an app in Azure, get the right permissions, and then send a request with details like subject, time, and set “isOnlineMeeting” to true. This can be done using a script component in Robot Studio. If you can’t use Graph API, another option is to use a custom Outlook macro to enable Teams manually, but that’s not very reliable. So, the best solution is using Microsoft Graph API
To create a calendar event with a Microsoft Teams meeting using Microsoft Graph API, you first need to register your app in Azure and give it permissions like Calendars.ReadWrite and OnlineMeetings.ReadWrite. Then, generate a Client ID and Secret to get an access token. Using this token, you can call the Graph API with a POST request to https://graph.microsoft.com/v1.0/me/events. In the request, include details like subject, start time, end time, and set “isOnlineMeeting” to true and “onlineMeetingProvider” to “teamsForBusiness”. This will create a Teams-enabled meeting in your calendar. You can use this call in a script from Pega Robot Studio if needed. This method is the most reliable way to create Teams meetings programmatically.