Using Advanced Find for FetchXML builder v4.0

Some time ago I have written an article about how to use the Advanced Find as FetchXML builder. Today I tried using the javascript:prompt() method on a CRM 4.0 deployment and found out that the code doesn't work anymore. This alert script does still work though.


javascript:alert(resultRender.FetchXml.value);

A slightly different code which might be easier to remember is:

javascript:alert(document.all.FetchXml.value);

With the popup selected you can press copy+c and paste the result in a notepad window.



Setting the focus to a tab

Today me and a colleague worked on setting the focus of a crmForm automatically to a specific tab. After a bit of research we found that this code works:


crmForm.all.tab1Tab.click();

With this code in mind I looked on the internet and found that my fellow MVP Jim Wang posted that more than a year ago as well :)

Anyway, it works!