Forum Discussion

Akashsinghaiprus's avatar
Akashsinghaiprus
Copper Contributor
Dec 19, 2024
Solved

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.

  • 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:

    1. 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]

Resources