图形API:模式扩展日期过滤器不起作用

时间:2019-02-08 14:56:42

标签: microsoft-graph

我正在为用户使用架构扩展。似乎该扩展名的日期值当前无法进行过滤。

https://graph.microsoft.com/v1.0/users?$select=ext123455_UserExtension&$filter=ext123455_UserExtension/CreationDate ge '2020-02-08T09:59:20.8368277Z'

响应包含日期CreationDate属性小于2020的结果:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(ext123455_UserExtension)",
    "value": [
        {
            "id": "23d17258-515c-4685-b95e-f98f2df8df56",
            "ext123455_UserExtension": {
                "@odata.type": "#microsoft.graph.ComplexExtensionValue",
                "CreationDate": "2019-02-08T09:59:20.8354838Z",
            }
        }
    ]
}

扩展架构为:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#schemaExtensions/$entity",
    "id": "ext123455_UserExtension",
    "description": "Extension Test",
    "targetTypes": [
        "user"
    ],
    "status": "InDevelopment",
    "owner": "...",
    "properties": [
        {
            "name": "CreationDate",
            "type": "DateTime"
        }
    ]
}

0 个答案:

没有答案