How come I'm able to query Office365's Reporting API using the following request:
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'
but when I modify it to filter on the subject as well, it returns an error:
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')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.