DYNAMICS 365 HOW TO USE UNDER AND NOT UNDER OPERATORS

Since the introduction of the hierarchical structure feature in CRM, querying the hierarchical data has become an interesting way of retrieving info.

For this purpose, new conditional operators called "Under" and "Not Under" are added in Advanced Find.

To check this functionality, the below hierarchy sample will be used between the accounts records wherever it is located in the hierarchy
advanced find under

These conditional operators can be used in one of the below locations:
  1. Advanced Find

    • In the Advanced Find window, Look for Accounts
    • In Select > Fields, choose Account
    • In the list of operators, Under and Not Under operators exist in the list
    • Choose Under or Not Under and select any account record from the Lookup
      advanced find under 2
    • In the above query, another condition is added: Account Name Contains pharmaceutical
    • The result will return all the accounts Under "Contoso Health" and their name contains the word "pharmaceutical"
      advanced find under 3
  2. CRM SDK

    advanced find under 4
  3. FetchXml

    advanced find under 5

The hierarchical data retrieval can be achieved using following filter condition operators
  • above
  • eq-or-above
  • under
  • eq-or-under
  • not-under
  • eq-owneduseroruserhierarchy
  • eq-useroruserhierarchyandteams

Hope This Helps!

Comments

Popular posts from this blog

DYNAMICS 365 FILTER LOOKUP FIELD BASED ON N:N RELATIONSHIP

DYNAMICS 365 LEVEL UP BROWSER EXTENSION - PART 1 - FORMS

DYNAMICS 365 REFERENCE PANEL