Skip to main content

Notifications

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

How to Create 1:1 Relationship between two entities?

(1) ShareShare
ReportReport
Posted on by 2
Hello Friends,
 
I  am new to MS Dynamics currently using version 8.2 (2016) on premise edition.  My technical background is pure .NET Developer.
 
Can anyone explain me  with a very simple example on how to create  one-to-one relationship between two entities?   (Sample Image is attached for my understanding)
 
Thanks.
 
 
 
 
  • Suggested answer
    Muhammad.Affan Profile Picture
    Muhammad.Affan 4,449 on at
    How to Create 1:1 Relationship between two entities?
    Hi There,
     
    Refer to this link it provides overview of entity relationship in D365.
     
    Thanks
    Affan
    If my answer please mark it as verified.
  • Suggested answer
    Ray Profile Picture
    Ray 1,505 on at
    How to Create 1:1 Relationship between two entities?
    Dynamics does not support 1:1 relationship directly.
    But you can do some customization on 1:N or N:N relationship, an usually way is to create a plugin to limit the create/update of the entity records.
     
    In your example, you can create a 1:N relationship between Employee and Employeedetail. And then create a plugin on the "N" entity for create and update message, to limit the records point to the "1" entity.
     
    BTW, If you want to dispaly the EmployeeDetail info on Employee form, then you can consider use Employee as the "N" entity in 1:N relationship(lookup field), this will allow you to use a quick view form to display the EmployeeDetail.

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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans