Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

How to put And and Or Operator together in Conditions in QueryExpressions

$
0
0

How to apply following type of condtion in Query Expression

(Condition 1 and Condition 2) or (Condition 3 and Condition 4)

var queryExpression = new QueryExpression()

                   {

                       Distinct = false,

                       EntityName = Incident.EntityLogicalName,

                       ColumnSet = new ColumnSet("incidentid","productid", "title", "ticketnumber", "statuscode", "severitycode", "prioritycode", "createdon", "modifiedon", "createdby"),

Send

                       Criteria =

                       {

                           Conditions =

                               {

                                   Condition 1,

                                   Condition 2,

                                   Condition 3,

                                   Condition 4

                               }

                       }

                   };

in Above query expr all conditions are with and operator by default, I want them to work like above conditions written with or & and combined.


Viewing all articles
Browse latest Browse all 82002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>