'Graph explorer callrecords "could not find the requested call record"

I am trying to get call records from MS Teams and store it in another database and I'm calling callRecord to do that. I am running a python script on a console app and used these steps: (https://docs.microsoft.com/en-us/azure/active-directory/develop/console-app-quickstart?pivots=devlang-python).

I have created a subscription in the function app in the portal, and I'm able to grab the ID from there through an HTTP trigger. The app information is stored in a JSON file, as seen below and that's what I'm running through the script.

{ "authority": "https://login.microsoftonline.com/xxx", "client_id": "xx", "scope": [ "https://graph.microsoft.com/.default" ], "secret": "xx", "endpoint": "https://graph.microsoft.com/v1.0/communications/callRecords/ID(from subscription) }

When I run the script, I get this: Error

Any help would be appreciated!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source