Forum Discussion
Getting “Meeting Id is corrupted” error while trying to fetch meeting details from Graph API
Below is the screenshot of the teams context object,
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,
Please let us know how to get the meeting details. Please note that we have created the meeting directly from the calendar.
- Prasad_Das-MSFTMicrosoft
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
- GET /chats/{chat-id}?$select=onlineMeetingInfo
-
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.
- Pradeep1090Copper Contributor
We cannot use the Chat API as we don't have required scope permissions to use it. Is there anyother way round this problem?
- pksukeshpkCopper ContributorThanks, 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?
- Prasad_Das-MSFTMicrosoft
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.