Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Dynamics CRM Hierarchy query in Canvas App

Posted on by 3,962

Hi

 

I have a query that I cannot seem to work out how to do it.

I am building a canvas app that will sit on a tab on the Account form in Dynamics CRM.

 

It uses ModelDrivenFormIntegration to provide the context to the Canvas App

 

I have account hierarchy structure setup as follows:

Doon1976_0-1628528461070.png

In the canvas app, When I am in the context of one of these records, I want to display ALL CONTACTS that belong to that organisation, AND ALL other organisations below.

 

Example, If I am on Account A, I need to see all contacts for ALL organisations in the hierarchy.  If I am on Account C, I need to see all contacts for organisations C, F & G in the hierarchy etc etc

 

The number of levels to a hierarchy is not static it could in time increase or decrease

 

I can do this using fetchXML, but how can I do this in a canvas app?

 

Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans