I need to track Microsoft teams call And there is callrecords Endpoint in Microsoft Graph, I need Callchainid to get data from that endpoint. So I need to Subscribe to change notifications to the /communications/callRecords endpoint to get callchainid.
Which url to give in notificationurl? How to handle the results?
Jayraj ChhayaPosted Dec 21, 2023, 2:06 PM
To subscribe to change notifications for the
/communications/callRecordsendpoint in the Microsoft Graph API, you need to provide a valid URL in thenotificationUrlparameter. This URL should be publicly accessible and capable of receiving HTTP POST requests from the Microsoft Graph service.Here's an example of how you can set up the subscription using C#:
In the above code, replace
"yourAccessToken"with the access token for your application, and"yourClientState"with any string that you want to associate with the subscription.Once you have set up the subscription, the Microsoft Graph service will send notifications to the provided
notificationUrlwhenever there are changes to the call records. You can handle the results by implementing an HTTP endpoint at the specifiednotificationUrlto receive and process the notifications.