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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

use many to many relationship to filter related records?

(0) ShareShare
ReportReport
Posted on by 195

Goodday everyone.

I have a challenge and I am not sure yet if it can be done, and if  so, what is the best way.

The Situation:

We use a 'Proposal' to make a Quote for the customer. (this entity is of course connected to an account for which the proposal is made).
On 'Proposal' we create 'Products' (a seperate entity, also connected to the account as we need some information from it)

The current way of working is that the sales manager can fill in specs and a product type on the 'Product'.
We want to change this to have the sales manager choose an Item code and have the specs filled automatically.
To do this I have created a new entity called 'Item code' which is now a database for item codes with specs, descriptions etc. and via a lookup on 'Products', the sales manager can select the 'Item code' he needs. This works as expected, pretty straightforward.

The challenge:
It seems it is a challenge for the sales manager to find the right item code for their customer. They would like to see the item codes filtered based on items that the customer has bought before. (while this history is not yet in CRM of course, we do have this history in our ERP system).

Solution:
I am not sure yet. The relationship between 'Accounts' and 'Itemcodes' should be N:N? (multiple accounts can buy an itemcode and an account can buy multiple item codes)
Create a new entity called 'Account-itemcode relation' to create records which show this N:N relationship?
Can I use that new entity to filter down the 'Item codes' on the 'Product'?
I know it is possible to filter a lookup to show 'related records' only, but I believe that can only work for Itemcodes that are themselves related to the account right?

I tried to visualize the situation below.

Any help is greatly appreciated!

8750.Capture.PNG

ps. We are on CRM online 9.1

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Erik Coppens Profile Picture
    195 on at

    It works now.

    I have used the out of the box N:N functionality.

    The reason why it did not work when I tried it at first was because one of the lookups was in the header of the form and not in the body.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans