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