MS Teams Call statistics errors from MS Graph API

Pav 1 Reputation point
2020-11-18T08:21:01.48+00:00

Hi, we are attempting to install (CLOBBA by CODE Software) which carries out advanced reporting for MS Teams calling. In order for this to work, the software needs to retrieve data from the Microsoft Graph API. Unfortunately this is not working as we get the below error:

This is an example of one of the calls being made - https://graph.microsoft.com/beta/communications/callRecords/45578cfe-8329-48b7-ba6b-54a627b00bf4?$expand=sessions($expand=segments)

The graph API response - { "error": { "code": "BadRequest", "message": "Unsupported segment type. ODataQuery: /communications/callRecords/0ff73e29-ddf6-4e6f-9963-6e7fcdf43042", "innerError": { "date": "2020-11-05T11:43:19", "request-id": "b1160328-3ce4-46c9-ae7e-da081001d367", "client-request-id": "b1160328-3ce4-46c9-ae7e-da081001d367" } } }

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,122 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,646 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.
2,869 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,056 Reputation points Microsoft Vendor
    2020-11-19T03:04:52.557+00:00

    @Pav ,

    I have no access to see the example link.

    As I know, the call statistics are listed in Dashboard, no need to retrieve manually by Microsoft Graph API.

    For more information, please refer to the following articles:

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the response is helpful, please click "Accept Answer" and upvote it.

    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.


  2. Safa MAALEJ 1 Reputation point
    2021-07-26T09:46:32.393+00:00

    you need to add an authorization to your request header
    You can follow this documentation
    https://learn.microsoft.com/en-us/graph/api/callrecords-callrecord-get?view=graph-rest-1.0&tabs=http#optional-query-parameters

    0 comments No comments