question

21998096 avatar image
1 Vote"
21998096 asked 21998096 answered

getPstnCalls always returns 0 objects ("@odata.count": 0)

I have tried to call the API with diferent dates and can't get it to return data:
https://graph.microsoft.com/beta/communications/callRecords/getPstnCalls(fromDateTime=2021-08-01,toDateTime=2021-08-09)

I always get
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(microsoft.graph.callRecords.pstnCallLogRow)",
"@odata.count": 0,
"value": []
}

Do we need some other permission?

microsoft-graph-cloud-communications
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.

21998096 avatar image
0 Votes"
21998096 answered

Hi, sorry I resolved this...it was my fault, using incorrect method, as I was trying to get team calls wich I eventually used the subscription method to teams and get the calls service.. Thanks for reply.

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.

21998096 avatar image
0 Votes"
21998096 answered DianaWanjuhi-1579 edited

Actually I was trying to get the Total Calls by user in our ORG, Teams Call and I think this method doesn't get it....

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

Hello @21998096 Thank you for reaching out. the getPstnCalls method will return a log of only Pstn calls between those two dates. Are you able to see the calls on the Teams admin centre usage report? See pstn-usage-report

Would you also kindly share the request id and date so we can look into this?

0 Votes 0 ·