title: Odata query for outlook rest api
body: <p>How to use search and filter in the same query?</p>
  
  <pre><code>String url = "https://outlook.office.com/api/v2.0/me/messages?$filter=ReceivedDateTime ge 2016-02-22&amp;$select=Subject,From,Body,ReceivedDateTime&amp;$search=\"subject:(Chris Brown OR Michael Jackson)\"";
  </code></pre>
  
  <p>I need to find all mails with <code>Subject</code> having either "Chris Brown" or "Michael Jackson" and mail received date after 22nd Feb, 2016. Also it should have <code>Subject</code>, <code>From</code>, <code>Body</code>, <code>ReceivedDateTime</code> in the REST response.</p>
  
  <p>Could anyone please help?</p>
  
  <p>FYI - I am getting output if it has either <code>filter</code> or <code>search</code>. But when given together, I am getting a "Bad Request" error.</p>