【发布时间】:2020-04-13 13:53:54
【问题描述】:
我正在尝试在文件夹名称以
开头的共享点列表中检索文件夹https://**.sharepoint.com/_api/Web/GetFolderByServerRelativePath(decodedurl='/Salesforce')/Folders?$filter=名称以'abc'开头
错误
{ “错误”: { "code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException", “信息”: { "lang": "en-US", "value": "表达式\"名称以‘abc’开头\”无效。" } } }
https://**.sharepoint.com/_api/Web/GetFolderByServerRelativePath(decodedurl='/Salesforce')/Folders?$select=Name$filter=contains(Name,'abc')
{ “错误”: { "code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException", “信息”: { "lang": "en-US", "value": "表达式 \"Name$filter=contains(Name,'abc')\" 无效。" } } }
请指导。
抱歉,必须添加 &
https://****.sharepoint.com/_api/Web/GetFolderByServerRelativePath(decodedurl='/Salesforce')/Folders?$select=Name&$filter=((startswith(name,'test')) )
现在它正在返回所有文件夹。不是以 test 开头的那个
【问题讨论】: