gpt4 book ai didi

rest - Office365 报告 REST API - "The query is invalid."

转载 作者:行者123 更新时间:2023-12-03 23:58:25 25 4
gpt4 key购买 nike

为什么我能够使用以下请求查询 Office365 的报告 API:

https://reports.office365.com/ecp/reportingwebservice/reporting.svc/MessageTrace?$select=Subject,SenderAddress,RecipientAddress,Status,Received,Received&$filter=SenderAddress eq 'foo@bar.com' and RecipientAddress eq 'bar@foo.com' and StartDate eq datetime'2016-10-01T00:00:00' and EndDate eq datetime'2016-10-03T00:00:00'

但是当我修改它以过滤 时主题 同样,它返回一个错误:
https://reports.office365.com/ecp/reportingwebservice/reporting.svc/MessageTrace?$select=Subject,SenderAddress,RecipientAddress,Status,Received,Received&$filter=SenderAddress eq 'foo@bar.com' and RecipientAddress eq 'bar@foo.com' and StartDate eq datetime'2016-10-01T00:00:00' and EndDate eq datetime'2016-10-03T00:00:00' and Subject eq 'Test'

{ "odata.error": { "code": "InvalidQueryException", "message": { "lang": "", "value": "The query is invalid." } } }

最佳答案

尝试类似

startswith(Subject,'Test')

关于rest - Office365 报告 REST API - "The query is invalid.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39845954/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com