I have been using Microsoft Fakes for CRM unit testing which was good however recently came across xrm unit testing framework developed by Wael Hamze and Ramon Tebar which makes life much easier when comes to unit testing. You can write fake … Read More
Author Archives: Abbas Khan
A currency is required if value exists in money field CRM 2015
A currency is required if value exists in money field CRM 2015 This error usually comes up when a money field is added but logged in user does not have a default Currency set Go to settings menu of user … Read More
Filtered lookup view on pre selected values on CRM form
Let’s say we have a scenario where we want user to see and selected filtered records on a lookup view on a CRM form.In our example, we have a entity called ‘Contract Workstream’ which has a look up field called … Read More
Unit Testing MS Dynamics CRM 2015 Plugins with Xrm Test Framework
started a new Plugins project from scratch and wanted to add a unit test project using Xrm test framework by following instructions from the link below Create Plugin unit test Added all code as described in documentation above… Created fake … Read More
Generation of proxy/early bound classes in CRM
Few simple steps First need to go into MS Visual Studio Tools (Usually under Installed version of Visual Studio and then folder) Open Developer Command Prompt for VS2013 or whatever version you are using Once opened, change directory to where … Read More
Import of solution failed Plugins Profile missing
You might come across an error like below when importing a solution from one environment to an other Import of solution ‘ABCD’ failed. The following components are missing in your system and are not included in the solution. import or … Read More
How to include external references in Plugins and Workflow Activity in CRM
Could not load file or assembly ‘ABCD.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a6a250603368f7aa’ or one of its dependencies. The system cannot find the file specified.’ An error when try to run a workflow or a plugin in Dynamics CRM. This usually happens when … Read More
How to get organization id with organization name in CRM 2011
How to get organization id with organization name in CRM 2011 To get an organization id with organization name in CRM 4.0 we used below static public string OrganizationId(string orgName){if (organizationIds == null)organizationIds = new Dictionary<string, string>();string organizationId = string.Empty;if … Read More
CRM 2011 get List of all Organizations and get url from organization details collection
CRM 2011 get List of all Organizations and get url from organization details collectionHow to get URL from list of organisations when getting data back from OrganizationDetailCollection Method to get list of OrganizationDetailCollectionpublic static OrganizationDetailCollection GetOrganizations(){string url = CrmServerConnection.GetMSCRMServerUrl(); if … Read More
CRM Difference between managed and unmanaged solution
Main differences between unmanaged solution and managed solution in MS Dynamics CRM Unmanaged Solution and managed solution In unmanaged solutions we can create components and customise as we want to where in managed we can restrict things Unmanaged solutions usually … Read More