Ref: https://www.magnifez.com/exception-handling-in-plugin-in-ms-crm-using-plugin-trace-log-feature/
Why the plugins implement IPlugin interface and Workflows (custom) inherits the Code Activity abstract class
Someone asked me this question which is frequently asked in interviews i.e. why plugins implemented iplugin i.e. an interface and custom workflow inherit codeactivity i.e. an abstract class? The purpose of question is to know why codeactivty is an abstract class and not an interface like iplugin? So to understand the answer we fist need... Continue Reading →
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 →