how to get all call records using MS Graph

cisco storm 1 Reputation point
2021-10-10T14:16:19.413+00:00

Hi,

I found the API to get call record by id via MS graph.

https://learn.microsoft.com/en-us/graph/api/callrecords-callrecord-get?view=graph-rest-1.0&tabs=http

But...

how do I get the call records ids?

Is there a way to get all call records and or call record ids for a specific user?

regards,

Asaf

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

2 answers

Sort by: Most helpful
  1. Glen Scales 4,431 Reputation points
    2021-10-10T22:44:28.437+00:00

    There are two ways to get the callid's as per the doco on that page

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

    Is there a way to get all call records and or call record ids for a specific user?

    The Graph API doesn't give you the ability to enumerate the CallId's at the moment


  2. Glen Scales 4,431 Reputation points
    2021-10-11T23:36:02.097+00:00

    >The only way today to get the call record ids is via subscription to callRecords change notification.

    In the Microsoft Graph yes, unless your making call with Bot then you would have the id and could get the CDR once the call had ended.

    >Is there a plan to add such API that upon providing the user/pass to get the user callRecords within a given time?

    Not sure on that, there isn't anything in the beta endpoint or anything public about that feature coming

    there is a feature request https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/expose-direct-rest-api-to-fetch-callrecordid-for-ms-teams/idi-p/2808397