Forum Discussion

Akashsinghaiprus's avatar
Akashsinghaiprus
Copper Contributor
Dec 19, 2024

call details with devce info and participant join,leave time

i am working on teams integration project when i run grap api it does not show data for device and participant timing details
graph api for extacting data for call  including 

{

        "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": "Unknown",

                "leave_time": "Unknown"

            },

           

  • You can use below endpoint to get the full session and segment details from a callRecord.
    Get callRecord - Microsoft Graph v1.0 | Microsoft Learn

    The response includes platform property which will return device info.

     

     

     

    Thanks, 

    Prasad Das

    ------------------------------------------------------------------------------------------ 

    If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

    • Akashsinghaiprus's avatar
      Akashsinghaiprus
      Copper Contributor

      Hello Prasad,

      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 Singh]

Resources