question

YuriiLukashenko-9892 avatar image
0 Votes"
YuriiLukashenko-9892 asked HarmeetSinghMSFT-7172 answered

How to get call id in Microsoft Teams?

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

office-teams-app-devmicrosoft-graph-teamwork
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Adding teams/tags to assist

0 Votes 0 ·

1 Answer

HarmeetSinghMSFT-7172 avatar image
0 Votes"
HarmeetSinghMSFT-7172 answered

Hi @YuriiLukashenko-9892

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".

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.