Skip to content

teams report directroutingcalls

Get details about direct routing calls made within a given time period

Usage

m365 teams report directroutingcalls [options]

Options

--fromDateTime <fromDateTime>
The start of time range to query. UTC, inclusive
--toDateTime [toDateTime]
The end time range to query. UTC, inclusive. Defaults to today if omitted
-h, --help
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text. Default text
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Remarks

This command only works with app-only permissions. You will need to create your own Azure AD app with CallRecords.Read.All permission assigned. Instructions on how to create your own Azure AD app can be found at Using your own Azure AD identity

The difference between fromDateTime and toDateTime cannot exceed a period of 90 days

Attention

This command is based on an API that is currently in preview and is subject to change once the API reached general availability.

Examples

Get details about direct routing calls made between 2020-10-31 and today

m365 teams report directroutingcalls --fromDateTime 2020-10-31

Get details about direct routing calls made between 2020-10-31 and 2020-12-31 and exports the report data in the specified path in text format

m365 teams report directroutingcalls --fromDateTime 2020-10-31 --toDateTime 2020-12-31 --output text > "directroutingcalls.txt"

Get details about direct routing calls made between 2020-10-31 and 2020-12-31 and exports the report data in the specified path in json format

m365 teams report directroutingcalls --fromDateTime 2020-10-31 --toDateTime 2020-12-31 --output json > "directroutingcalls.json"