I found an excellent tool called Fetch XML Builder that helps you prepare FetchXML by building queries and joins using an intuitive user interface.
Let me tell you that there is a smarter way to extract FetchXML and this is how you can do it:
- Open Advanced Find in CRM Build your search criteria in the UI (you can't get a sophisticated UI than this :-))
- Save the query
- Hit Find
- View the source of the results page and search for the hidden field named "fetchXML".


Now, my attempt is not to outsmart the tool - Fetch XML Builder, but let me tell you how you can use this tool for some useful code :)
- Launch Fetch XML Builder
- Click "Import" -> "User Query" to import the query that we built in CRM
- Now, let the tool generate code for you by clicking on "Create Code" -> "QueryExpression"

Let the effort that had gone towards building an intuitive UI for FetchXMLBuilder be appreciated :-)

0 comments:
Post a Comment