[英]Contains Text into item list Sharepoint Microsoft Graph
I have a question.我有个问题。 I need to search a sharepoint list and retrieve an item via Microsoft Graph.我需要搜索 sharepoint 列表并通过 Microsoft Graph 检索项目。 Is there any way to do the equivalent of a contains instead of an equals ?有什么方法可以做相当于contains而不是equals的事情吗?
https://graph.microsoft.com/v1.0/sites/{{site_id}}/lists/{{list_id}}/items?expand=fields&filter=fields/Field1 eq 'Something'
Return items if there is a full match in the Field1 field.如果 Field1 字段中存在完全匹配项,则返回项目。
I can't use queries because I use application permission.我不能使用查询,因为我使用了应用程序权限。
How can I do that?我怎样才能做到这一点?
I will recommend Rest api to Realize the contain function我会推荐 Rest api 来实现包含 function
/_api/web/lists/getByTitle('Address')/items?$select=Title,Id,Company,City&$filter=substringof('e',Company)
graph api has startswith and endswith can Realize part of the function图api有startwith和endswith可以实现function的一部分
https://graph.microsoft.com/v1.0/sites/{{site_id}}/lists/{{list_id}}/items?$expand=fields&$filter=startswith(fields/Title,'e')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.