Microsoft Graph API 获取 callRecord 方法:callRecord 的版本

Microsoft Graph API Get callRecord method: version of callRecord

我在 Teams 中订阅了新的通话记录,它工作正常,但有时当我调用“Get callRecord”Graph API 方法来获取 Teams 通话的详细信息时,没有组织者的 session信息。我后来看了看,有组织者的 session 信息。我还在 callRecord.

中看到“版本”属性

有没有办法确定它是最新版本的callRecord并且以后不会更改?我需要知道用户是否在开会,但是版本这个东西让我不确定。

代码仅供参考:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#communications/callRecords(sessions())/$entity",
    "id": "5da1894e-5af4-47f9-a304-e26208c5469f",
    //I talk about this attribute
    "version": 3,
    "type": "groupCall",
    "modalities": [
        "audio",
        "videoBasedScreenSharing",
        "screenSharing"
    ],
    "lastModifiedDateTime": "2020-12-09T14:01:42.0108662Z",
    "startDateTime": "2020-12-09T10:48:24.8299343Z",
    "endDateTime": "2020-12-09T13:22:10.515688Z",
    "joinWebUrl": "...",
    "organizer": {
        "acsUser": null,
        "spoolUser": null,
        "phone": null,
        "guest": null,
        "encrypted": null,
        "onPremises": null,
        "acsApplicationInstance": null,
        "spoolApplicationInstance": null,
        "applicationInstance": null,
        "application": null,
        "device": null,
        "user": {
            "id": "c2408055-2c55-489f-b8f5-5f404dbab627",
            "displayName": "...",
            "tenantId": "..."
        }
    },
    "participants": [...],
    "sessions@odata.context": "https://graph.microsoft.com/v1.0/$metadata#communications/callRecords('5da1894e-5af4-47f9-a304-e26208c5469f')/sessions",
    "sessions": [...]
}

正如 by Trinetra-MSFT所说:

Version changes based on the number of call records available, once a version of existing call increased you can distinguish between both call records using version number, to retain the same version is not what call records API provides, it automatically increases the version.

无法获取最新版本的通话记录