- Are you trying to find older records (more than 30 days are not available)? If yes, then you will receive the above error.
- Instead, you may want to give a try within 30 days and see still if you can repro the issue. If yes, then share the graph response (requestid, timestamp).
call records in graph api returns record not found even there is lots of callrecording
{
"error": {
"code": "NotFound",
"message": "Could not find the requested call record. Records about calls or online meetings that started more than 30 days ago are not available.",
"innerError": {
"date": "2021-04-27T13:11:12",
"request-id": "9ac16791-769c-4ae2-ac90-3a1650de721c",
"client-request-id": "9ac16791-769c-4ae2-ac90-3a1650de721c"
}
}
}
i have added permisions callrecord and im using client credentials token.
3 answers
Sort by: Most helpful
-
Deva-MSFT 2,266 Reputation points Microsoft Employee
2021-04-30T15:25:43.3+00:00 -
Naveen Sharma 20 Reputation points
2024-12-03T19:53:04.7166667+00:00 Hi There,
Did you get solution to this issue?
I have same problem. I do see result in report on UI but getting this error in Postman from API
RegardsURL: https://graph.microsoft.com/v1.0/communications/callRecords/getPstnCalls?fromDateTime=2024-11-06
Naveen
{ "error": { "code": "NotFound", "message": "Could not find the requested call record. Records about calls or online meetings that started more than 30 days ago are not available.", "innerError": { "date": "2024-12-03T19:47:36", "request-id": "XXXXXXXXXXXXXXXXXXXX56cc4X", "client-request-id": "XXXXXXXXXXXXXXXXXX3a205XXX" } } }
-
Giuseppe Minervino 0 Reputation points
2025-01-24T15:54:32.09+00:00 I have the same problem Has anyone found a solution ? { "error": { "code": "NotFound", "message": "Could not find the requested call record. Records about calls or online meetings that started more than 30 days ago are not available.", "innerError": { "date": "2025-01-24T15:31:01", "request-id": "----------------------------------", "client-request-id": "------------------------------" } } }
call very simple but....
end_date = datetime.datetime.utcnow() start_date = end_date - datetime.timedelta(days=30) start_date_str = start_date.strftime('%Y-%m-%dT%H:%M:%SZ') end_date_str = end_date.strftime('%Y-%m-%dT%H:%M:%SZ') print(start_date_str,end_date_str) url = "https://graph.microsoft.com/v1.0/communications/callRecords/getPstnCalls" headers = { 'Authorization': f"Bearer {access_token}", 'Content-Type': 'application/json' } params = { 'startDateTime': start_date_str, 'endDateTime': end_date_str }