Share via

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 | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. 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

    Was this answer helpful?

    0 comments No comments

  2. Sharon Zhao-MSFT 25,771 Reputation points Microsoft External Staff
    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.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.