我正在尝试检索文档先前版本的签入注释。
到目前为止,我可以使用以下请求获取文档的所有版本
https://graph.microsoft.com/v1.0/sites/{siteId}/lists/{listId}/items/{itemVersion}/versions?expand=fields(select=_CheckinComment)
请求响应:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('a0203803-64b3-4e8d-87d6-b67f0dc4458e')/lists('Documents')/items('2')/versions",
"value": [
{
"id": "3.0",
"lastModifiedDateTime": "2022-02-08T21:09:08Z",
"lastModifiedBy": {
"user": {
"email": "groveale@contoso.onmicrosoft.com",
"id": "128d03dd-fd4c-46b0-baf4-18425493d9fb",
"displayName": "Groveale"
}
},
"fields@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('a0203803-64b3-4e8d-87d6-b67f0dc4458e')/lists('Documents')/items('2')/versions('3.0')/fields/$entity",
"fields": {
"@odata.etag": "\"c021342c-c684-4605-abe9-a601d2e448e2,8\"",
"_CheckinComment": "some more comments"
}
},
{
"id": "2.0",
"lastModifiedDateTime": "2022-01-25T22:14:05Z",
"lastModifiedBy": {
"user": {
"email": "groveale@contoso.onmicrosoft.com",
"id": "128d03dd-fd4c-46b0-baf4-18425493d9fb",
"displayName": "Groveale"
}
},
"fields@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('a0203803-64b3-4e8d-87d6-b67f0dc4458e')/lists('Documents')/items('2')/versions('2.0')/fields/$entity",
"fields": {
"@odata.etag": "\"c021342c-c684-4605-abe9-a601d2e448e2,8\"",
"_CheckinComment": "some more comments"
}
},
{
"id": "1.0",
"lastModifiedDateTime": "2022-01-25T22:13:42Z",
"lastModifiedBy": {
"user": {
"email": "groveale@contoso.onmicrosoft.com",
"id": "128d03dd-fd4c-46b0-baf4-18425493d9fb",
"displayName": "Groveale"
}
},
"fields@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('a0203803-64b3-4e8d-87d6-b67f0dc4458e')/lists('Documents')/items('2')/versions('1.0')/fields/$entity",
"fields": {
"@odata.etag": "\"c021342c-c684-4605-abe9-a601d2e448e2,8\"",
"_CheckinComment": "some more comments"
}
}
]
}
正在为所有版本返回最新的签入评论。这是预期的行为,我希望返回该版本的签入注释。
这可能是一个错误吗?