question

17807642 avatar image
0 Votes"
17807642 asked HunaidHanfee-MSFT answered

Create event as an online meeting (hybrid exchange)

my system : M365 + on premise exchange hybrid

Student1 account only uses cloud services.
Faculty1 account uses on-premises mailboxes and the rest of the M365 services.

I want to create a Teams online meeting using the GRAPH API.
There are 2 options.
1) Calendar API
https://docs.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http#example-4-create-and-enable-an-event-as-an-online-meeting
2) Cloud communications API

But, 2) is excluded because it does not create events in the calendar.

So, I use the Calendar API.


"isOnlineMeeting": true,
"onlineMeetingProvider": "teamsForBusiness"
=========================


for Student1,
I created an Event (with online meeting) using the Calendar API. It is created normally.


for Faculty1 (on-premise mailbox)
I created an Event (with online meeting) using the Calendar API. Here I am getting an error.

Error message :
The property 'IsOnlineMeeting' does not exist on type 'Microsoft.OutlookServices.Event'. Make sure to only use property names that are defined by the type or mark the type as open type. REST APIs for this mailbox are currently in preview. You can find more information about the preview REST APIs at https://dev.outlook.com/.

This seems to be a problem with the hybrid.
However, I can create an online meeting with event through the 'New meeting' button on the schedule screen in Teams.
Can't I just call the same function using the Graph API?

118662-teams.png




office-teams-app-devmicrosoft-graph-calendar
teams.png (49.7 KiB)
· 1
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.

@17807642,

As we are mainly responsible for general question of Microsoft Teams, you question related to API is not supported by us. I will change office-teams-windows-itpro tag to office-teams-app-dev tag. Thanks for your understanding.

Besides, I find an article about Exchange and Microsoft Teams interaction for your reference.


0 Votes 0 ·

1 Answer

HunaidHanfee-MSFT avatar image
0 Votes"
HunaidHanfee-MSFT answered

Hello,
Currently. The ability to use the REST APIs in hybrid deployments is currently in preview.
Please go through this document for more information.

Use REST APIs to access mailboxes in Exchange hybrid deployments (preview)
Thanks,

Hunaid Hanfee



If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.


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.