How to get call id in Microsoft Teams?

YuriiLukashenko 1 Reputation point
2021-07-22T15:45:48.88+00:00

I should get call details from the https://graph.microsoft.com/v1.0/communications/callRecords/{id}
But where I can get this id?

For example, we have a call in Teams between user1 and user2. Are there any possibilities to get the id of this call? If I don't want to add some bot to the conversation

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,021 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,265 questions
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 Reputation points
    2022-03-02T12:28:56.123+00:00

    Hi @YuriiLukashenko

    There are two ways to get the id of a callRecord:

    1. Subscribe to change notifications to the /communications/callRecords endpoint.
    2. Use the callChainId property of a call. The call record is available only after the associated call is completed.

    A callChainId property is a unique identifier for all the participant calls in a conference or a unique identifier for two participant calls in a P2P call. This needs to be copied over from Microsoft.Graph.Call.CallChainId.

    You can refer to Get callRecord to know more.

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

    0 comments No comments

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.