Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Filter Lookup field

Posted on by 45

Hi All, 

I have 2 lookup fields. Field1 and Field2, these fields lookup with same entity. How can I filter Field2 accordingly Field1.How can I this process?

For example; Field1 has AA data and this data has BB field; if I select AA for Field1, Field2 has to be show related AA data and BB fields.

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Filter Lookup field

    HiCRMcrm1,

    I am assuming these columns are having 1:N relationship already.

    You need to configure the Filtring property of the control on the fform 

    pastedimage1674669601242v1.png

  • Suggested answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: Filter Lookup field

    Hi,

    You can use below link filter lookup fields:

    https://carldesouza.com/filtering-lookups-in-dynamics-365-addcustomfilter-addpresearch/

    You need to addPresearch function on Field2 lookup field with filter condition to not include the field value selected in Field1.

     

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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

Featured topics

Product updates

Dynamics 365 release plans