Getting “Meeting Id is corrupted” error while trying to fetch meeting details from Graph API

Copper Contributor

Below is the screenshot of the teams context object,

pksukeshpk_0-1717573343161.png

 

When we try to get the meeting details from the Graph API with the meeting id obtained from the teams context object (Refer the above screenshot), we get “Meeting Id is corrupted” error.

 

Below is the screenshot of the Graph API request,

 

pksukeshpk_1-1717573343166.png

 

Please let us know how to get the meeting details. Please note that we have created the meeting directly from the calendar.

 

8 Replies

@pksukeshpk - 

This is a known disconnect. The meetingId exposed by the Teams Client SDK differs from the meeting id exposed in Graph. However, you should be able to get the Graph meeting id by making a call to

  1. GET /chats/{chat-id}?$select=onlineMeetingInfo

https://learn.microsoft.com/en-us/graph/api/chat-get?view=graph-rest-1.0&tabs=http#example-4-get-the...

  1. Thereafter use the following request to get the OnlineMeeting resource:

    GET /users/{userId}/onlineMeetings?$filter=joinWebUrl eq '{joinWebUrl}'

You would get the {chat-id} for #1 from a call into Teams Client SDK.

Response to #2 will give you the correct Graph OnlineMeetingId in case you want to store a mapping for later.

 

 

 

 

Thanks, 

Prasad Das

------------------------------------------------------------------------------------------ 

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

@Prasad_Das-MSFT 

We cannot use the Chat API as we don't have required scope permissions to use it. Is there anyother way round this problem?

Thanks, Prasad, for the reply. But unfortunately, we cannot use the chat API. Is there any other option to get the online meeting details by using the chatid that we are getting from the SDK context?

@pksukeshpk - The meetingId exposed by the Teams Client SDK will show you 'Meeting Id is corrupted' error. Hence it is suggested to use the following request to get the OnlineMeeting resource:

GET /users/{userId}/onlineMeetings?$filter=joinWebUrl eq '{joinWebUrl}'

Response to this API will give you the correct Graph OnlineMeetingId.

For calling the online meeting API, how will we get the joinWebUrl?

Okay. That I know. But in our case, we are not using the mentioned create online meeting API for creating the meeting. We are creating the meeting directly from the calendar, and then the organizer and attendee are joining by clicking the link from the Outlook calendar.

 

We are creating an app that can be added to any scheduled meeting while the meeting is on. We aren't creating any meeting

There doesn't seem to be any other way available.