Tuesday, February 21, 2012

Easy way to build FetchXml query using Advanced Find in MS CRM 4.0

CRM 2011 comes with advanced features and one important feature that saves time is building FetchXml query. It comes with the out of box feature which includes FetchXml button in the Advanced Find window. Whereas in CRM 4.0 we can get the fetch xml using the below technique:


Open Advanced Find and Write the query and click on Find to get the result
In the Result window, click F11 and enter javascript:alert(resultRender.FetchXml.value); which opens an alert box with the fetch xml query. Click on the alert box and press Ctrl+c to copy the xml and make  use of it for easy development.

No comments:

Post a Comment