Experiences on CRM, .Net and DHTML


  • Join Us on Facebook!
  • Follow Us on Twitter!
  • LinkedIn
  • Subcribe to Our RSS Feed

Releasing CrmXpress SmartSoapLogger v1.0

Every Microsoft Dynamics CRM developer runs into a situation when JavaScript + SOAP call is the only logical way out. Now with Microsoft Dynamics CRM 2011 things have changed and old solutions which worked really well with Microsoft Dynamics CRM 4.0 don't work anymore. The only way you can achieve this is to use the solution provided in SDK to dump raw SOAP packet and then using Jamie's Soap formatter tool (http://crm2011soap.codeplex.com) you can get a JavaScript that can be used against CRM 2011. Now this is a lengthy process so it is time consuming and as it involves multiple manual steps that make it more error-prone. I am always bit lazy when it comes to monotonous tasks which don't add value to my current engagement. That makes me a big fan of automation, and by automation I mean reduce my efforts to minimal manual inputs to get things done.

On the great journey of automation, inspired by many others, here I would like to present one of the first utility from CrmXpress - SmartSoapLogger v1.0. It is a very simple tool that integrates all of the above mentioned manual tasks in one click and helps you generate required code to make JavaScript + SOAP calls. This tool is available on CodePlex at: http://smartsoaplogger.codeplex.com.

It works with Microsoft Dynamics CRM 2011 On-Premise as well as Online (With some creative thinking this utility can work with CRM 4.0 as well just you will have to put some efforts in order to introduce CRM 4.0 support). Thanks to Jamie Miley (http://mileyja.blogspot.com) the source code for this tool is available on CodePlex at: http://smartsoaplogger.codeplex.com/releases/76542/download/301730.

Also I would like to thank Jamie Miley for his efforts on building SOAP formatter (http://mileyja.blogspot.com/2011/03/crm-2011-jscript-soap-request-formatter.html) as I could build this tool very quickly using his codebase.
Here is a small video demo where SSL (I know SmartSoapLogger is a long name) connects with CRM Online and generates script and SOAP packets for a WhoAmI call.

Releasing CrmXpress TraceHelper v1.0

Microsoft Dynamics CRM lets you create trace files that monitor the actions performed by various Microsoft Dynamics CRM components. For example, CRM Async service can create its own trace file, which enables you to troubleshoot error messages or other issues with CRM Async service. Apart from that, these Trace files can be an excellent resource for an experienced CRM Developer to understand what exactly is going on behind the scenes.

CrmXpress TraceHelper helps you to enable/disable tracing for Microsoft Dynamics CRM with few clicks. It also gives you the option to manage the trace files from within a single window.

You can download it from here : http://www.crmxpress.net/Tools/CrmXpress.Win.TraceHelper.zip

Remember: once the settings are applied, IIS must be restarted to take the effect.  


Releasing CrmXpress RunAs GUI tool

It's been a long time since I thought to put this to public. I have used this tool for a quite a long time now. Basically, it allows you to create profiles with username and password. Now being CRM developer many a times you would want to launch CRM Web interface with another user's credentials. Generally, you would do so by using Run As or by creating a shortcut that will ask for credentials when it is clicked OR by disabling automatic logon in intranet zone.

I wanted to come up with a lot easier way to achieve this. That's why I made a simple utility that stores usernames and credentials and set of applications in a profile. You can create as many profiles as you want and add as many applications as you need. Credentials you provided are encrypted and stored with user settings. To add application, all you need to do is drag and drop a shortcut of the application or the application itself on to CrmXpress Run As Gui tool.

You can download it from here : http://www.crmxpress.net/Tools/CrmXpress.Win.RunAsGUI.zip

Your feedback is really important for me to provide feature upgrades/bugfixes.

Kindly note that I have tested this utility on Win7/Server2K8/Server2K8R2 x86/x64 editions with .NET Framework 2.0.

Here are steps to start using this tool.

  1. Launch CrmXpress.Win.RunAsGui.exe
  2. Click on Add. It will auto fill current user name and domain/workgroup name.
  3. Enter password.
  4. Click on Save. Your default user profile is now created.
  5. Click on Add again. It will auto fill current user name and domain/workgroup name. Change the name with any other domain/workgroup user name of your choice.
  6. Enter password for the user name that you have entered.
  7. Click on Save.
  8. Now you will have two profiles and you can access them via Profiles drop down list.
  9. Drag any application shortcut on to the CrmXpress.Win.RunAsGui's User Interface.
  10. The application will be added to the applications list for a given profile and it will be launched with credentials of whichever user profile you have selected.



  • This program is provided as is without any guarantees or warranty.
  • Although the author has attempted to find and correct any bugs in the free software programs, the author is not responsible for any damage or losses of any kind caused by the use or misuse of the programs.
  • The author is under no obligation to provide support, service, corrections, or upgrades to this free software program.

CRM 4.0 Import Organization fails when you try to map users

Here is another strange but interesting issue, I faced almost a month back. One of my acquaintances was trying to import a CRM Organization [They exported the database and were importing the database into an existing CRM installation] which was using a different domain. Everything was going fine until he reached to the point where you are supposed to map existing users with users from destination AD. The moment he reached that stage he was running into an Exception in Deployment Manager add-in [See the screenshot below].


After trying to troubleshoot this problem for a while, I found few pointers regarding empty domainname field in SystemUserbase table. Upon examination of the SystemUserbase table, we found that indeed there were few records with empty domainname field in there. Now INTEGRATION and SYSTEM are valid users of CRM and they do not have domainname mapped to them however, for every other record there must be an associated user from AD i.e. domainname field must be populated. In our case, there were few other users, which had empty domainname field. We filled in those fields with valid domain\username information and voila, import went just fine.