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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Many to many N:N relationship is not working with "account" and "contact"

(0) ShareShare
ReportReport
Posted on by

Hello everybody!
Actually I am trying to create a new N:N relationship between “account” and “contact”. I wanted to display a subgrid of “contacts” in an “account” from which I can add “contacts” to the “account”. The same “contact” can be added in several account record forms. Unfortunately, the “+” button is not displaying on the “contacts” subgrid so I couldn’t add contacts to any account. I have tryied the same thing between “account” and a custom entity and it does work. The question is, is there any limitation with N:N relationships? (it is not a security role issue because I am a System Administrator)

 

7128.Capture.PNG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    You should use connection instead of N:N relationship.

    Find the explanation here, using N: N for these two entities will cause you a lots of trouble in future.

  • Aminovski Profile Picture
    on at

    Hi,

    Thank you for your answer. Using connections doesn't resolve my problem. I used an intermediate entity instead. But for future purpose, I don't understand why it is not possible to add new N:N relationships between "account" and "contact"??? 

  • Suggested answer
    Patrick Friedrich Profile Picture
    395 on at

    Hi Amine,

    in the subgrid settings on the account form you have to set the N:N entity.
    In your case it´s called shareholders. So do not choose contact or company in the subgrid.

    I have currently the same setting for another project and I´m facing some issues:

    Normally, a contact has one main company he/she works for. Therefore the parentcustomerid field makes sense. If you try to add another company for the same contact - issues will appearas Wei already mentioned.

    I have the following problem:

    community.dynamics.com/.../754611

    And there is also another thread with different solutions:

    community.dynamics.com/.../127864

    But in my mind, nothing of them works properly. Connections are very basic and not smart I guess. And a custom entity could work but I´m not quiet sure to be honest.

    So it depends on what do you want to do with the N:N Relationship?

    Hope that helps.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans