Forum Discussion
Akashsinghaiprus
Dec 19, 2024Copper Contributor
Graph api :Fetching Call Records with Participant Join/Leave Times & Device Information
hello Microsoft Teams Developer Community,
I’ve been working on a script to fetch detailed information about call records using the Microsoft Graph API. The script is designed to capture not just the basic call information but also the join and leave times of participants and the devices used during the call.
Hi Akashsinghaiprus - You can use the Get callRecord endpoint to get the call Records. Then you can call List Sessions endpoint which will return the list of sessions associated with a callRecord object. The response also includs platform property which will return if the device is Windows or Android etc.
- AkashsinghaiprusCopper Contributor
Graph API: Meeting Attendance Details - Organizer and Participant Join/Leave Times
- AkashsinghaiprusCopper Contributor
Hello Meghana,
Thank you for your response. I followed your guidance to use the endpoint to get the full session and segment details from a call record. While this endpoint provides some useful information, I'm still not able to retrieve all the data I need. Specifically, I'm having trouble obtaining the following details:
- Participant Information:
- Participant Name
- Join Time
- Leave Time
- Device Information (including platform, product family, etc.)
In my current implementation, I'm only able to retrieve device information for the caller and callee, but not for all participants. Additionally, the join and leave times for participants are either missing or unclear in the response.
Here's an example of the data I'm trying to obtain for each call:
json
{
"call_id": "004998be-da70-40f6-999a-3c84484c98b1",
"start_date_time": "2024-12-17T11:53:14.9897859Z",
"end_date_time": "2024-12-17T12:16:55.6045446Z",
"participants": [
{
"participant_name": "Surbhi Yadav",
"join_time": "2024-12-17T11:54:00.0000000Z",
"leave_time": "2024-12-17T12:15:00.0000000Z",
"device_info": "Windows 10, Skype for Business"
},
{
"participant_name": "Another Participant",
"join_time": "2024-12-17T11:56:00.0000000Z",
"leave_time": "2024-12-17T12:10:00.0000000Z",
"device_info": "macOS, Microsoft Teams"
}
]
}Could you please provide further guidance on how to retrieve this detailed participant data, including device information and join/leave times for all participants in a call, using the Microsoft Graph API?
Thank you for your assistance.
Best regards, [Akash]
- Meghana-MSFT
Microsoft
- Unfortunately, it is not possible to get all details in a Graph API. Only the data mentioned in the doc is returned by API endpoints. Please refer this example https://learn.microsoft.com/en-us/graph/api/callrecords-callrecord-get?view=graph-rest-1.0&tabs=http#example-3-get-participant-details to expand the full paginated participant list for a callRecord.
- Participant Information:
- Meghana-MSFT
Microsoft
Hi Akashsinghaiprus - You can use the Get callRecord endpoint to get the call Records. Then you can call List Sessions endpoint which will return the list of sessions associated with a callRecord object. The response also includs platform property which will return if the device is Windows or Android etc.