Skip to main content

Notifications

Announcements

No record found.

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

How to create 1:1 relationship in MS CRM ?

Posted on by 15

Hi,

Can anyone please tell how can I create 1:1 relationship in Ms CRM?

Example: I have two custom entity Project and Project Manager. If I have assigned a manager to a Project then same manager should not be assigned to some other project.

--> Project ML assigned to manager "A.Mishra" then A.Mishra should have only one Project (ML). If user to try to assign other projects to A.Mishra then it should throw an error like Manager is already assigned on a Project something like that.

Thanks in advance!!

  • Suggested answer
    pavanmanideep Profile Picture
    pavanmanideep 1,329 on at
    RE: How to create 1:1 relationship in MS CRM ?

    Hi,

    You could write a plugin on Project entity, whenever Project entity having project manager as lookup field should only be able to be updated when its null or empty, when it has a value, you can show your required error message through Invalid Plugin Execution exception...hope this helps...

    Cheers,

    PMDY

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans