title: XrmServiceToolkit.SOAP.RetrieveMultiple Query CRM 2016
body: <p>I made a query that gets all reports from CRM that have certain user guid or are due on today.
  So the equivalent if statement would be:</p>
  
  <pre><code>if(ownerid == userGuid || novemo_date == today) {...}
  </code></pre>
  
  <p>How can I make this kind of query:</p>
  
  <pre><code>if(ownerid == userGuid &amp;&amp; (novemo_date == today || novemo_date == yesterday)){...}
  </code></pre>
  
  <p>This is my query:</p>
  
  <pre><code>var query = "&lt;a:ColumnSet&gt;" +
                              "&lt;a:AllColumns&gt;true&lt;/a:AllColumns&gt;" +
                              "&lt;/a:ColumnSet&gt;" +
                          "&lt;a:Criteria&gt;" +
                            "&lt;a:Conditions /&gt;" +
                            "&lt;a:FilterOperator&gt;Or&lt;/a:FilterOperator&gt;" +
                            "&lt;a:Filters&gt;" +
                              "&lt;a:FilterExpression&gt;" +
                                "&lt;a:Conditions&gt;" +
                                "&lt;a:ConditionExpression&gt;" +
                                    "&lt;a:AttributeName&gt;ownerid&lt;/a:AttributeName&gt;" +
                                    "&lt;a:Operator&gt;Equal&lt;/a:Operator&gt;" +
                                    "&lt;a:Values xmlns:b='http://schemas.microsoft.com/2003/10/Serialization/Arrays'&gt;" +
                                      "&lt;b:anyType i:type='c:string' xmlns:c='http://www.w3.org/2001/XMLSchema'&gt;" + userGuid + "&lt;/b:anyType&gt;" +
                                    "&lt;/a:Values&gt;" +
                                  "&lt;/a:ConditionExpression&gt;" +
                                  "&lt;a:ConditionExpression&gt;" +
                                    "&lt;a:AttributeName&gt;novemo_date&lt;/a:AttributeName&gt;" +
                                    "&lt;a:Operator&gt;Equal&lt;/a:Operator&gt;" +
                                    "&lt;a:Values xmlns:b='http://schemas.microsoft.com/2003/10/Serialization/Arrays'&gt;" +
                                      "&lt;b:anyType i:type='c:string' xmlns:c='http://www.w3.org/2001/XMLSchema'&gt;" + today + "&lt;/b:anyType&gt;" +
                                    "&lt;/a:Values&gt;" +
                                  "&lt;/a:ConditionExpression&gt;" +
                                "&lt;/a:Conditions&gt;" +
                                "&lt;a:FilterOperator&gt;Or&lt;/a:FilterOperator&gt;" +
                                "&lt;a:Filters /&gt;" +
                              "&lt;/a:FilterExpression&gt;" +
                            "&lt;/a:Filters&gt;" +
                          "&lt;/a:Criteria&gt;" +
                          "&lt;a:Distinct&gt;false&lt;/a:Distinct&gt;" +
                          "&lt;a:EntityName&gt;novemo_timereport&lt;/a:EntityName&gt;" +
                          "&lt;a:LinkEntities /&gt;" +
                          "&lt;a:Orders /&gt;" +
                          "&lt;a:PageInfo&gt;" +
                            "&lt;a:Count&gt;0&lt;/a:Count&gt;" +
                            "&lt;a:PageNumber&gt;0&lt;/a:PageNumber&gt;" +
                            "&lt;a:PagingCookie i:nil='true' /&gt;" +
                            "&lt;a:ReturnTotalRecordCount&gt;false&lt;/a:ReturnTotalRecordCount&gt;" +
                          "&lt;/a:PageInfo&gt;" +
                          "&lt;a:NoLock&gt;false&lt;/a:NoLock&gt;";
  </code></pre>