在这里,我试图根据创建日期过滤数据。在第一次我尝试在 Graph Explorer 中并且它正在工作。
https://graph.microsoft.com/v1.0/me/messages?$filter=createdDateTime ge 2017-09-04&$select=subject,lastModifiedDateTime
现在尝试在 Dell Boomi 中实现相同的功能。这是拉取所有项目的资源路径:sites/{id}.sharepoint.com:/sites/{id}:/lists/{list_id}/items
它工作正常。
之后我添加过滤条件:
sites/{id}.sharepoint.com:/sites/{id}:/lists/{list_id}/items?$filter=lastModifiedDateTime ge 2017-09-04&$select=email,displayName
这里出现错误。这是错误消息:
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request</h2>
<hr><p>HTTP Error 400. The request is badly formed.</p>
有人可以帮忙吗,如何解决这个问题?这是样本数据。
> { "@odata.context":
> "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.list)('1334af71-5b7a-4276-a8d8-c3f3f129051d')/items",
> "value": [
> {
> "@odata.etag": ""ef6e961c-a956-400e-a77d-f044d2e0b894,8"",
> "createdDateTime": "2018-05-24T13:38:10Z",
> "eTag": ""ef6e961c-a956-400e-a77d-f044d2e0b894,8"",
> "id": "3",
> "lastModifiedDateTime": "2018-06-18T10:24:27Z",
> "webUrl": "https://{id}.sharepoint.com/sites/{id}/Doc%20Interfaces/757391.pdf",
> "createdBy": {
> "user": {
> "email": "abc@abc.COM",
> "id": "173abc",
> "displayName": "abc"
> }
> },
> "lastModifiedBy": {
> "user": {
> "email": "xyz@abc.COM",
> "id": "234xyz",
> "displayName": "xyz"
> }
> },
> "parentReference": {
> "id": "03fe-16595a0da875"
> },
> "contentType": {
> "id": "0x01"
> },
> "fields@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.list)('1334f71-c3f3f129')/items('3')/fields/$entity",
> "fields": {
> "@odata.etag": ""ef6e961-f044d2e0b894,8"",
> "FileLeafRef": "757391.pdf",