【问题标题】:Contains Text into item list Sharepoint Microsoft Graph在项目列表中包含文本 Sharepoint Microsoft Graph
【发布时间】:2021-10-07 10:39:08
【问题描述】:

我有一个问题。我需要搜索共享点列表并通过 Microsoft Graph 检索项目。 有什么方法可以做到相当于 contains 而不是 equals

https://graph.microsoft.com/v1.0/sites/{{site_id}}/lists/{{list_id}}/items?expand=fields&filter=fields/Field1 eq 'Something'

如果 Field1 字段完全匹配,则返回项目。

我无法使用查询,因为我使用了应用程序权限。

我该怎么做?

【问题讨论】:

    标签: sharepoint microsoft-graph-api


    【解决方案1】:

    我会推荐Rest api来实现包含功能

     /_api/web/lists/getByTitle('Address')/items?$select=Title,Id,Company,City&$filter=substringof('e',Company)
    

    graph api有startswith和endswith可以实现部分功能

    https://graph.microsoft.com/v1.0/sites/{{site_id}}/lists/{{list_id}}/items?$expand=fields&$filter=startswith(fields/Title,'e')
    

    【讨论】:

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