Feb 12, 2015 Murali Narayanan
We had discussed earlier about some of the top features in Dynamics CRM 2015, and one that we missed out on picking up was the new and powerful feature – Visualizing Hierarchical Data. As we have started to use this feature, we have realized the sheer potential this feature can bring in for quicker, efficient and effective data visualizations. Further, combining this with Roll-up fields gives the user the flexibility to see the aggregation of data visually.
Let us look at some of the benefits you will draw from visualizing data in CRM:
Now let us look at where are can we use this feature. All OOTB entities are supported for data visualizations and by default the following system entities have visualizations enabled:
Going ahead in the post, we shall be defining a visualization, step and step. First, let us look at what we need to bear in mind before defining data visualization
1. Create an Entity called new_affiliate
2. Create a (1:N) self-referential relationship new_new_affiliate_new_affiliate
and marked it as hierarchical, as shown here
3. Click on the Hierarchy Settings–>New. Enter the mandatory fields and select a quick form. You can create a quick form by clicking create new link
4. If you have more than one 1:N (Self reference) relationship with hierarchy enabled for the same entity then you can specify which relationship should be used for visualization by clicking “Mark a relationship as enabled for hierarchies” from the above screen which will bring this window. Now, select a relationship and click on “Mark hierarchical”
5. Create 2 fields to calculate Rollup
6. Publish all the customizations and create some records to see the visualizations
7. Create some affiliate records. Add commission also
can see a sample record below. We can see a small calculator Icon next to Total Commission field and it is disabled by default. This is a roll-up field and the calculation will be done asynchronously. If we want to calculate immediately then user can click on the small refresh icon found at the end of the Total Commission field
9. After creating the records you can see an icon on the Active Affiliates List
10. Clicking on the hierarchy icon brings the below screen (I clicked on the icon next to Affiliate 1). The tile displays Name, Parent Affiliate, Commission and aggregated commission (Total Commission). This was configured on the “New Form” quick create form above. User can click on the small icon found on the top right corner of the tile which will open the corresponding affiliate record
11. Using Advanced find to query against a hierarchy. There are 2 new operators introduced in Advanced Find – Under and Not Unde
Developers can fetch the hierarchical data using FetchXml or QueryExpression.
At present Odata doesn’t support querying hierarchical data.
Following fetch XML can be used to retrieve the Hierarc
<fetch distinct='false' no-lock='false' mapping='logical'> <entity name='new_affiliate'> <attribute name='name' /> <attribute name='new_affiliateid' /> <attribute name='new_affiliateid' rowaggregate='CountChildren' alias='AffiliateChildren'/> <filter type='and'> <condition attribute='new_parentaffiliate' operator='under' value='{0}' /> </filter> </entity> </fetch> |
Salient features of Dynamics 365 Commerce 2020 release wave 1
May 14, 2020
Dynamics 365 2020 Release Wave 1– for Proactive Financial Management
May 07, 2020
MS Dynamics 365 HR 2020 release wave 1: Powering your workforce
Apr 29, 2020
Ever changing hobbies ...but an undying passion for Dynamics CRM, Salesforce and all the new age technologies out there!
We have plans which will meet your needs, and if not we can tweak them around a bit too!