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

query expression order is not working

$
0
0

Hello,

In Javascript ,i Am trying to query data using the following code ;

var selectedOptionset = Xrm.Page.getAttribute("crm_type").getSelectedOption();

var optionValue = selectedOptionset.value;

var ConditionRequest1 = new Sdk.Query.ConditionExpression("incident",
"crm_type",
Sdk.Query.ConditionOperator.Equal,
new Sdk.Query.OptionSets([optionValue]));




var queryIncidentBorn = new Sdk.Query.QueryExpression("incident");
queryIncidentBorn.addColumn("incidentid","createdon");

queryIncidentBorn.addCondition(ConditionRequest1);
queryIncidentBorn.addOrder("createdon", OrderType.Ascending);



results = Sdk.Sync.retrieveMultiple(queryIncidentBorn);

i have  got an errorr that the ordertype is not defined


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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