Notifications
Announcements
Hi community,
In my business scenario, I need to deal with hierachy data. I have built a custom entity, the one-to-many relationship and enabled hierachy settings, sample data in. Started exploring with advanced find but couldn't find the "under / not under" commands (as suggested in the microsoft docs) to query from root node over all children. Is fetchXML needed to this task? Directions welcome!
Hi @SandraSoniec ,
Sorry for the delay.
For your question, it could be a little difficult to get an answer here in PowerApps forum, I recommend you to search in the Dynamics365 forum since there might be similar scenarios and solutions of them:
https://community.dynamics.com/
However, I have found some threads or blogs which look could be helpful:
https://softnovation.wordpress.com/2017/07/30/query-hierarchical-data/
https://docs.snowflake.com/en/user-guide/queries-hierarchical.html
Hope this helps.
With model driven, It's not possible. But you can create a Canvas based PowerApps and have it embed in the Model Driven app. Or create a webresource that achieves what you are expecting.
@summitb Thanks directions. Will use embedded canvas approach for now. Web resources appears to be useful for my app too.
Glad to have helped you with solution @SandraSoniec
@v-jefferni and @summitb FYI further tested out advanced find.
If the entity contains one-to many self-references defined as hierarchy relationship you can select the Unique ID of a record and use the "above" or "under" operator in the condition to find all ancestors or children.
Further information can be found here
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/query-hierarchical-data#condition-operators-for-hierarchical-data
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 739 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 268