microsoft-graph-apimicrosoft-teamsmicrosoft-graph-teamsmicrosoft365

How can I link a callRecord to an outlook event?


In our app we have a screen where we show the events from our user's Outlook calendar and the teams calls made by our user (that linked his O365 account and gave us the necessary permissions). We intercept these calls with a subscription on the callRecords (/communications/callRecords). All data comes from the Microsoft Graph API.

The thing is that when our users do a Teams meeting we get an event and a callRecord. When that happens we would like to detect the link between the two to show our user that those were related. Since the event is a Teams meeting and that the call starts with the "Join" button of the meeting in teams there should be a link somewhere, no?

The issue is that I can't find the link anywhere. Is there a way to detect the link between those two? An Id somewhere?

Thanks you!

Update 2022: So, we used the WebJoinURL that @dani-mazahreh suggested, but be careful, some recurring events have the same WebJoinURL. So if it's a daily recurring event, you should add the day to the comparison.


Solution

  • The only way i managed to do this is using the join URL. When creating an event, Microsoft Graph will return the join URL among other properties, save it and match with the join URL of the Call Record.