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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

OOB Lookup filtering not working for self referential lookup

(0) ShareShare
ReportReport
Posted on by 5

Hello Folks,

I have a custom lookup field "Region (of type Team entity)" on the Team entity itself (i.e. have created a self-referential relationship (1: N) on Team entity).

And I also have a lookup field "Employee" of custom entity Employee on Team entity as shown below:

pastedimage1633247806122v2.png

Now, I want to filter Employee lookup based on the Region selected.

But in Related records filtering it does not show the Region Lookup field i.e. self-referential lookup, see screenshot below:

 pastedimage1633247790537v1.png

Note: I do not want to use custom javascript code.

 

Query:

Why I am not able to see the Region lookup (of type Team entity) in the Related records filtering list? Self-reference might be causing the problem, but anyone has an idea why this isn't working.

 

Any help will be appreciated.

 

Thank you

I have the same question (0)
  • Dustin Kodli Profile Picture
    5 on at
    OOB Lookup filtering not working for self referential

    Hello Folks,

    I have a custom lookup field "Region (of type Team entity)" on the Team entity itself (i.e. have created a self-referential relationship (1: N) on Team entity).

    And I also have a lookup field "Employee" of custom entity Employee on Team entity as shown below:

    pastedimage1633247490539v1.png

    Now, I want to filter Employee lookup based on the Region selected.

    But in Related records filtering it does not show the Region Lookup field i.e. self-referential lookup, see screenshot below:

     pastedimage1633247511245v2.png

    Note: I do not want to use custom javascript code.

     

    Query:

    Why I am not able to see the Region lookup (of type Team entity) in the Related records filtering list? Self-reference might be causing the problem, but anyone has an idea why this isn't working.

     

    Any help will be appreciated.

     

    Thank you

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: OOB Lookup filtering not working for self referential lookup

    Hi Dustin,

    Related Records Filtering under Field Properties can filter lookups for 1:N and N:N relationships.

    But Employee lookup field means that Team and Employee is N:1 relationship,  One team(child) can only have one employee(Parent).

    You can filter region based on employee, but the opposite is impossible.

    pastedimage1633315018697v1.png

    If you want to populated employee field with value from parent team record once region field is filled in current team form automatically, you can achieve it through flow or js code.

  • Community Member Profile Picture
    on at
    RE: OOB Lookup filtering not working for self referential lookup

    Hi Partner,

    Can you click Yes under "Did this answer your question?" to close this thread if my answer is helpful.

     pastedimage1634111835744v1.png

    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

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 101

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 66 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans