WRITTEN BY Patrick Verbeeten - 25 June 2014
To run unit tests for scripts normally running on CRM forms you need a working version of the CRM Xrm Page object. This is object contains lots of information and can be difficult to fake. The FakeXrmPage object allows you to load all this information from a customizations file. This makes testing easier and results in a more reliable. Defining unit tests allows you to quickly run a verification of the operation of your scripts.
WRITTEN BY Patrick Verbeeten - 01 April 2012
In CRM 2011 Web Resources you can connect to other resources on the CRM server. This can be the CRM web services or you may want to redirect to another web resource. To do this you need the full URL which can differ depending on the deployment.
WRITTEN BY Patrick Verbeeten - 12 January 2012
NuGet is an open source initiative that 'Makes it easy to install and update open source libraries in Visual Studio' or so it says on the website. Basically its a Visual Studio plugin that allows you to add packages to individual projects. These packages can contain different things such as assemblies, commonly source files etc. With support for both an online public repository as well as the ability to use local repositories it makes it a good way to save your libraries, even if it is only for your self or your team.
WRITTEN BY Patrick Verbeeten - 14 April 2011
When working with CRM you end up doing a lot of things over and over again.
WRITTEN BY Patrick Verbeeten - 25 September 2010
In CRM 2011 Javascript is no longer embedded in forms but now has build in feature to use external resource files. You can edit these files using the web browser or in an external editor. Visual studio supports Intellisense for JavaScript, this explains how enable the support for the CRM provided objects such as the Xrm.Page object to be shown.
WRITTEN BY Patrick Verbeeten - 03 June 2010
Usually when you are working with CRM and doing scripting you have to work in the small text box with no real coding support. Also you have the restrictions that you cannot create reusable functions etc. There allready are several examples and approaches to solve this problem but for completion I have added these examples. This contains two different approaches one using files location on the CRM server the other using resources files.
WRITTEN BY Patrick Verbeeten - 30 April 2010
For some records it can be very usefull to copy it. This avoids repetive entry of the same data. If you have a relation on the entity which references itself you can do this using a mapping. But if you do not have a relation and do not whish to create on you can copy the values using the following sample.
RSS Feed