Need to fetch the download the meeting recording from graph api

Parth Kumar 66 Reputation points
2022-09-09T05:09:49.847+00:00
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,020 questions
0 comments No comments
{count} vote

Accepted answer
  1. Srinivasa Rao Darna 6,721 Reputation points Microsoft Vendor
    2022-09-11T13:07:10.137+00:00

    Hi @Parth Kumar ,

    It appears there is a incorrect date format in the callRecordingDisplayName and the actual filename that got saved in OneDrive recordings folder.

    239883-image.png

    • /chats/{chat-id}/messages it is returning the response in UTC DateTime offset format and in OneDrive it is getting saved as per the local time zone of users OneDrive.

    239872-image.png

    Please use callRecordingUrl from the above response with OneDrive SharingLinks,

    GET /shares/{base64encoded-callRecordingUrl}/driveItem/content below are the steps to get the same.

    • In this case my callRecordingUrl
      "callRecordingUrl": "https://tenant-my.sharepoint.com/:v:/g/personal/user@tenant.onmicrosoft.com/ETLxQCb9h9VEsRAlNRLVt2oBLs57HVWqNWOfmIRdxpi7FA?email=user%40tenant.onmicrosoft.com"

    To encode a sharing URL, use the following logic:

    1. First, use base64 encode the URL.
    2. Convert the base64 encoded result to unpadded base64url format by removing = characters from the end of the value, replacing / with _ and + with -.
    3. Append u! to be beginning of the string.
    • After encoding url with base64 and following above steps, will get a string in below format
      u!aHR0cHM6Ly95djVicy1teS...................................................................9ubWljcm9zb2Z0LmNvbQ
    • Using the example Access the shared item directly, can get the file content
      GET /shares/{base64encoded-callRecordingUrl}/driveItem/content
      239903-image.png

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


3 additional answers

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,721 Reputation points Microsoft Vendor
    2022-09-09T08:23:13.46+00:00

    Hi @Parth Kumar ,

    Please refer to a similar post How to downloaded recorded calls/meeting directly through Microsoft Teams Graph API?

    • Use GET /chats/{chat-id}/messages/{message-id} to get callRecordingDisplayName.
    • Next use the GET /users/{user-id}/drive/root:/Recordings/{callRecordingDisplayName}:/content to download the meeting recordings.

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


  2. Parth Kumar 66 Reputation points
    2022-09-12T14:13:53.663+00:00

    oka thank you very much for this solution. It helped me a lot.

    0 comments No comments

  3. Vishnoi, Astha 160 Reputation points
    2024-01-05T09:03:44.48+00:00

    Hello @Srinivasa Rao Darna !

    please help me out in downloading the recording video, I am using MS graph API to retrieve callRecordingUrl, i.e.,

    https://graph.microsoft.com/v1.0/users/6cced31c-50a9-4e6b-b6d4-956cc512282d/onlineMeetings/MSphMDZjNjU2My01MDAwLTQwNDYtYmFhOC03ZTQyODg2ODkyMmEqMCoqMTk6bWVldGluZ19abVkzTm1ZellqZ3RPVGczWlMwMFltVmxMVGhoWmpjdE4yTmtZemRpTkdFek5tSmhAdGhyZWFkLnYy/recordings/VjIjIzFhMDZjNjU2My01MDAwLTQwNDYtYmFhOC03ZTQyODg2ODkyMmE2NjE0ZTBkYS0xYzcyLTRhMjQtYTRlOS05NmM0NjI2NTY0OWEwNDAwMDAwMDgyMDBFMDAwNzRDNUI3MTAxQTgyRTAwODA3ZTcwYzFiYzA4N2RkZjA4NDJhZDkwMTAwMDAwMDAwMDAwMDAwMDAxMDAwMDAwMDY3YzMwMWY1YWNhMWUzNDE5MmU1YzQzOWFmYzljYTk3IyM4NDc4YjMyZi01Y2M0LTQ2N2UtODA5Ny01Y2FkYmRjMTRkOTU=/content
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.