Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Based on lookup value filter another lookup

Posted on by Microsoft Employee

Hi everyone!

I have this scenario. 

An entity Supplier supplies different types of products , another entity Types.

So Supplier1 supplies Screens, Mouses, PCS

Supplier2 supplies Mouses, Keyboards

etc.

I have two lookup fields that lookup to these two entites. Ideally i would like the lookup for Types to be filtered based on Supplier. Now i tried to do it with Dependent Lookups and thing is , if a Type is related to two Suppliers i will need to create two identical Types that lookup to two different Suppliers . What should be done is the Supplier to have a grid with multiple types , and based on the Supplier value on the form,  to show the related Types from the grid on the Type lookup field . I will have to use it for deeper levels next , so Types should have Brands below etc.

Is there a way to do it?

Thanks!

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Based on lookup value filter another lookup

    Dependent lookups will work EVEN for N:N relationships. I thought this wasn't possible but it is so problem solved

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Based on lookup value filter another lookup

    Hi Shak,

    Have you referred the following community thread?

    community.dynamics.com/.../159418

    Hope this helps you.

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