Grouping in LINQ in ms crm early bound classes

Yesterday i faced a requirement where i have to group work orders in crm on the basis of customer. Below is how to do it: //Get In progress Work orders List<msdyn_workorder> WorkOrderList = new List<msdyn_workorder>(orgContext.CreateQuery<msdyn_workorder>().Where(i => i.msdyn_systemstatus.value == 690970002));   var obj = from _WO in WorkOrderList    group _WO by _WO.msdyn_serviceaccount.Id into CUSTOMER     ... Continue Reading →

Blog at

Up ↑