If you’re using any hierarchies in your data, you’ve probably noticed the icon in your main grid views that you can click on to show the hierarchy view when records have a parent or children. It’s simple to work out if a record has a parent – just check if Continue Reading
SQL 4 CDS 1.0.9 Released!
I’ve just released SQL 4 CDS 1.0.9. Please update it when XrmToolBox prompts you to take advantage of these latest features:
FetchXML Multiple Links
One common pattern of queries I see about FetchXML is how to write queries to ask two different questions about the same related entity. For example: Invoices that include product A AND product B? Contacts that have pending emails AND no sent emails? Visits that have a page view of Continue Reading
SQL 4 CDS 1.0.6 Released!
I’m very pleased to announce the release of SQL 4 CDS version 1.0.6! Please update your existing versions in XrmToolBox to get some great new features…
Inside FetchXML pt 6 – datetime grouping
Last time I looked at aggregates, but unforgivably I missed out how to apply grouping to date/time attributes:
Inside FetchXML pt 5 – aggregate
One feature of FetchXML that sets it apart from other CDS query options is aggregates. This is the option to get summary data (number of records, sum of opportunity value etc.) rather than the individual values from each record. If your only concept of how many records you have is Continue Reading
Inside FetchXML pt 4 – order
It’s often important to sort the results of your query, and in FetchXML you can do this with the <order> element. This is equivalent to the ORDER BY clause in SQL.
FetchXML Builder Updates
I’m very proud to have some more of my contributions included in the latest release of the popular FetchXML Builder tool!
Inside FetchXML pt 3 – filter
So far we’ve looked at using the <attribute> and <link-entity> elements to control what columns to include in your query, but for a truly useful query you’ll likely want to select which rows to include instead of taking everything. Enter <filter>!
Inside FetchXML pt 2 – link-entity
To combine data from different records in your query you need to use the <link-entity> element. This is equivalent to a join in SQL.