web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Using Advanced Find for Account Hierarchy

(0) ShareShare
ReportReport
Posted on by 285

Hello,

I need some help using advanced find. I want to search for all account records where the parent for example is XYZ LTD. This part I am able to do in advanced find without any issues,  however, it’s the subsequent part I cannot seem to figure out.

Once I get the results for the above query I want to know which of the account records returned are themselves parent records of other accounts. This is where I get stuck, ideally I need the search criteria to be  on one search.

Any assistance would be helpful.

Thank you

Spaz

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Spaz, 

    You are trying to get account records with child records and whose parent account is 'XYZ LTD', Right?

    If so, you need add Related entity contains data as condition.

    Example:

    Similar scenario:

    pastedimage1642138974628v2.png

    It should only Account 01can be returned, it has child accounts and whose parent account is 'A. Datum Corporation (sample)':

    Set advanced find:

    pastedimage1642138939850v1.png

    Result:

    pastedimage1642139010578v3.png

  • Spaz Profile Picture
    285 on at

    Thanks Leah Ju, what you have described above is what I want but for the results I want to see XYZ LTD & Account 01 in the same result view is this possible? Also my advanced search criteria looks a bit different than yours when I enter the RELATED details so “Accounts (Parent Account) I do not have the option to enter ‘contains data’  the next line which appears gives me the option to then select a account field again. The difference may be down to the version I am using which is Dynamics 365 on prem.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Spaz,

    Unfortunately, you can't achieve the first.

    You can't view 'XYZ LTD' record in the returned result, because it does not meet the first condition--parent account is 'XYZ LTD'.

    If XYZ LTD & Account 01 are returned at the same time, which defies logic and can cause confusion.

    Maybe you can add parent account field to the new view, then you can view it in the result:

     pastedimage1642143112180v1.png

    pastedimage1642143166003v2.png

    For second point, it is indeed due to the difference in versions.

  • Suggested answer
    NODAL Profile Picture
    860 on at

    Hi Spaz,

    You can use 'Under" operator to fetch hierarchical data.

    Refer : Query hierarchical data (Microsoft Dataverse) - Power Apps | Microsoft Docs

    pastedimage1642409299962v1.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans