CRM 4.0 Useful FetchXML Javascript Helper

Hi again,

Although most of you would say CRM 4.0 is outdated, but unfortunately some companies are still using them :) (I know we are in the process of migrating).

However just want to let you know I found a post here that provides useful javascript function to retrieve record through fetchXml. It is useful for let's say based on the lookup id you want to get all the attributes and populate other fields in the form.

I have extended that function so you will be able to get attribute lookup name as well (if you want to populate a lookup field).

To use it you can do something like this:

Hope this helps,


I need to to thank you for your time due to this fantastic read!! I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
Java Training in Bangalore
Ui Development Training in Bangalore


Post a Comment