Looking for a way to retrieve all drive items by source.externalid == <specific call record id> in one query?

Dudi Edri 1 Reputation point
2022-11-11T06:19:00.66+00:00

I've been looking for days now through out the entire api docs for a simple way to search specific drive items (Microsoft Teams Recordings) from the Organization's OneDrive by a specific call record id I receive via the subscription notifications (web hook).

Is there a way to do it in one query instead of searching it drive item by drive item in client side?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,344 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shivam Dhiman 5,951 Reputation points
    2023-01-20T01:44:43.5533333+00:00

    Hi @Dudi Edri
    As of now we don't have option to get drive items directly from call record id.
    You can use chats messages Graph API to get the teams recording.

    Using this Graph API endpoint, you can get Teams meeting Record link in response. You can use filter by topic of meeting as shown below:

    GET https://graph.microsoft.com/v1.0/chats?$filter=topic eq 'Testing'

    Sample 1

    Use the above id from response and use in below Graph API.
    GET /chats/{chat-id}/messages

    Sample 2

    Now in response you will get call Id which you can search, further to download this teams meeting recording you can refer to this similar post: Downloading recording

    Please follow below documentation for more information.

    Hope this helps.

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

    0 comments No comments