【问题标题】:Get listItems with graph filtered by lastUpdateDate and parentListName获取由 lastUpdateDate 和 parentListName 过滤的图表的 listItems
【发布时间】:2022-10-14 14:34:12
【问题描述】:

我想使用 Graph API 来检索所有共享点列表项的列表:

  1. LastModifiedDate > 2022-01-01
  2. ParentListName = 'MyParentList'

    我实际上打了这个电话: 发布:https://graph.microsoft.com/v1.0/search/query

    身体 :

    {
        "requests": [{
            "entityTypes": [
                "listItem"
            ],
            "query": {
                "queryString": "(LastModifiedTime > 2022-01-01)"
            },
            "from": 0,
            "size": 1000,
    "expand":"fields"
        }]
    }
    

    似乎只选择在所需日期之后更新的 listItems,但在这个阶段,我不能只选择 parentListName = 'MyListName' 的 listItems。

    有人能帮我吗 ?

    提前致谢

【问题讨论】:

    标签: sharepoint microsoft-graph-api kql msgraph


    【解决方案1】:

    我认为最好的解决方案是将查询字符串修改为:

    {
        ...
        "query": {
            "queryString": "(LastModifiedTime > 2022-01-01 AND listId:<list-guid>)"
        }
        ...
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-17
      相关资源
      最近更新 更多