{"action":"created","issue":{"url":"https://api.github.com/repos/Garethp/php-ews/issues/42","repository_url":"https://api.github.com/repos/Garethp/php-ews","labels_url":"https://api.github.com/repos/Garethp/php-ews/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/Garethp/php-ews/issues/42/comments","events_url":"https://api.github.com/repos/Garethp/php-ews/issues/42/events","html_url":"https://github.com/Garethp/php-ews/issues/42","id":156508741,"number":42,"title":"FindItem and Restrictions with multiple IsEqualTo","user":{"login":"BlazingSun","id":375650,"avatar_url":"https://avatars.githubusercontent.com/u/375650?v=3","gravatar_id":"","url":"https://api.github.com/users/BlazingSun","html_url":"https://github.com/BlazingSun","followers_url":"https://api.github.com/users/BlazingSun/followers","following_url":"https://api.github.com/users/BlazingSun/following{/other_user}","gists_url":"https://api.github.com/users/BlazingSun/gists{/gist_id}","starred_url":"https://api.github.com/users/BlazingSun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlazingSun/subscriptions","organizations_url":"https://api.github.com/users/BlazingSun/orgs","repos_url":"https://api.github.com/users/BlazingSun/repos","events_url":"https://api.github.com/users/BlazingSun/events{/privacy}","received_events_url":"https://api.github.com/users/BlazingSun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-24T13:34:52Z","updated_at":"2016-05-25T13:33:50Z","closed_at":null,"body":"Hi,\r\n\r\nwhen running this request I get the error that the 'Or' element is not valid. When using only one 'IsEqualTo' everything is working fine. But i want to filter by multiple custom ids. Any idas?\r\n\r\n```\r\nEXTENDED_PROPERTY_ID = array(\r\n\t'PropertySetId' => 'c11ff723g-af43-4555-9952-8f4248a11c3e',\r\n\t'PropertyName' => 'customproperty',\r\n\t'PropertyType' => 'Integer',\r\n);\r\n $request = [\r\n            'ItemShape' => array(\r\n                'BaseShape' => 'IdOnly',\r\n                'AdditionalProperties' => [\r\n                    'ExtendedFieldURI' => ExchangeContactService::EXTENDED_PROPERTY_ID,\r\n            ]),\r\n            'Traversal' => 'Shallow',\r\n            'ParentFolderIds' => array(\r\n                'FolderId' => $folderId->toXmlObject()\r\n            ),\r\n\t\t\t'Restriction' => array(\r\n\t\t\t\t\tarray('Exists' => array(\r\n\t\t\t\t\t\t'ExtendedFieldURI' => EXTENDED_PROPERTY_ID,\r\n\t\t\t\t\t)),\r\n\t\t\t\t\t'Or' => array(\r\n\t\t\t\t\t\tarray('And' => array(\r\n\t\t\t\t\t\t\t'IsEqualTo' => array(\r\n\t\t\t\t\t\t\t\t'ExtendedFieldURI' => EXTENDED_PROPERTY_ID,\r\n\t\t\t\t\t\t\t\t'FieldURIOrConstant' => array(\r\n\t\t\t\t\t\t\t\t\t'Constant' => array(\r\n\t\t\t\t\t\t\t\t\t\t'Value' => 7)\r\n\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t)),\r\n\t\t\t\t\t\tarray('And' => array(\r\n\t\t\t\t\t\t\t'IsEqualTo' => array(\r\n\t\t\t\t\t\t\t\t'ExtendedFieldURI' => EXTENDED_PROPERTY_ID,\r\n\t\t\t\t\t\t\t\t'FieldURIOrConstant' => array(\r\n\t\t\t\t\t\t\t\t\t'Constant' => array(\r\n\t\t\t\t\t\t\t\t\t\t'Value' => 8)\r\n\t\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t)),\r\n\t\t\t\t\t)\r\n\t\t\t\t),\r\n\t\t\t]\r\n$request = array_replace_recursive($request, $options);\r\n$request = API\\Type::buildFromArray($request);\r\n\r\nreturn $this->api->getClient()->FindItem($request);\r\n```"},"comment":{"url":"https://api.github.com/repos/Garethp/php-ews/issues/comments/221577288","html_url":"https://github.com/Garethp/php-ews/issues/42#issuecomment-221577288","issue_url":"https://api.github.com/repos/Garethp/php-ews/issues/42","id":221577288,"user":{"login":"Garethp","id":709912,"avatar_url":"https://avatars.githubusercontent.com/u/709912?v=3","gravatar_id":"","url":"https://api.github.com/users/Garethp","html_url":"https://github.com/Garethp","followers_url":"https://api.github.com/users/Garethp/followers","following_url":"https://api.github.com/users/Garethp/following{/other_user}","gists_url":"https://api.github.com/users/Garethp/gists{/gist_id}","starred_url":"https://api.github.com/users/Garethp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Garethp/subscriptions","organizations_url":"https://api.github.com/users/Garethp/orgs","repos_url":"https://api.github.com/users/Garethp/repos","events_url":"https://api.github.com/users/Garethp/events{/privacy}","received_events_url":"https://api.github.com/users/Garethp/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T13:33:50Z","updated_at":"2016-05-25T13:33:50Z","body":"I'll take a look in to this, but I'm not familiar with Restrictions. Unfortunately I'm moving countries next week, and I won't have my main dev laptop, so if I can find something before the weekend I'll be able to help, but otherwise a resolution to this might be a couple of weeks out"}}
{"actor":{"display_login":"Garethp"}}