¿How to download MP4 recording from callRecordingUrl?

Juan Carlos Barreno Bravo 40 Reputation points
2023-07-19T00:20:12.16+00:00

Hello there,

I'm using End Point "/chats/" to get "callRecordingUrl", and i need download the MP4 file, for this I want to use the following endpoint "https://learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=http#example-1", but I don't know how to get the value of "item-ID", can you help me?.

callRecordingUrl = "https://XX-my.sharepoint.com/:v:/g/personal/XX/XX_XX"

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,733 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,888 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,173 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 34,651 Reputation points Microsoft Vendor
    2023-07-19T02:06:08.93+00:00

    Hi @Juan Carlos Barreno Bravo,

    I will recommend you to use base64 encode URL to download the record. You can refer to following steps

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

    239903-image.png


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.