Avatar of pcgym
pcgym
Flag for United States of America asked on

CRM 2011 Create Relationship from Contact to Contact with a Lookup to Assign a Spouse to a Contact.

In CRM 2011, I have created a 1:N Relationship (Contact to Contact) in an effor to allow users to link a contact to the contacts Spouse record.  From the Husband record, I have populated the spouse field with a link the Wife's record.  When attempting to populate the Husband on the Wife's record, I get an error.  The error message is attached.  The issue it because CRM automatically creates a "Parental" mapping.

Do anyone know a way to make this happen.  It's basically a lookup to the spouse on both records.
Capture.PNG
Microsoft Dynamics

Avatar of undefined
Last Comment
Feridun Kadir

8/22/2022 - Mon
Feridun Kadir

Try changing the relationship cascading behavior on the relationship that you created to be referential for all actions.

OR use connections. Perhaps you looked at connections and didn't like them.
pcgym

ASKER
Please see the images below to show my relationship.  The system automatically adds the mapping of "contactid-parentcustomerid" since there is a system relationship for Parent Account.  I am unable to delete this mapping from this particular relationship as the system says CRM requires it.

The options are:
Cascade All
Cascade Active
Cascade User-Owned
Cascade None.

Not sure what you mean by "referential for all actions"
Capture.PNG
Capture1.PNG
Feridun Kadir

Apologies for my poor words, I meant the way that you have shown in your screenshot - Referential Behavior.

The system relationship for Contact: Contact called Parent Customer is indeed required and cannot be deleted. However, you can change the relationship behaviour to Configurable Cascading and change the behaviours to Cascade None. Having said that, I'm a little puzzled why the relationship behavior on this lookup is affecting the way your lookup works which is definitely not set to parental.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
Feridun Kadir

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question