Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 1Discover the latest updates and new features to Dynamics 365 planned April 2021 through September 2021.
Release overview guides and videos Release Plan | Preview 2021 Release Wave 1 Timeline
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
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
Thank you for yoru query.
Please change "OrderType.Ascending" to "Sdk.Query.OrderType.Ascending".
Hello Rashid ,
It's working . thank you for your help
Business Applications communities