Friday, March 25, 2011

Get FetchXml From Advanced Find (CRM 4.0)

Open the advanced find and press CTRL+N , This will open the advanced find view in the new window.
Now design the query and click on the query button

In the address bar copy and paste the below script and press enter

javascript:void( new function() { var s=""; function f(p){ s+= p + "=" + eval("advFind." + p) + "\n\n"};f("FetchXml");prompt("my query:",s) } )

You will get the fetchxml in an alert