Create Custom Relationships

Learning Objectives

After completing this unit, you’ll be able to:

  • Explain the relationships settings.
  • Configure relationship settings.

Relationships Overview

Relationships in Nonprofit Success Pack (NPSP) are a custom object that connects two contacts in your Salesforce org. Our (fictional) nonprofit No More Homelessness (NMH) uses relationships to connect friends and family members who are clients, donors, or volunteers. On a contact record, the Relationships related list may show other contacts and their relationship to the current contact, like Son or Wife or Child. 

In many languages, these relationship terms convey information about the person's gender: for example, son is a male child and wife is a female spouse. Some organizations collect information about their contacts' gender identity and use that information not only to describe relationships, but also to personalize communications, tailor services, or report program results. 

Salesforce encourages everyone to be thoughtful about how we collect and use personal data like gender identity to ensure that our clients, constituents, and employees feel seen and respected. In our software, including NPSP, we give you tools to customize how and when you use gender information about your contacts. Check out 6 Ways to Put Equality in Your CRM, linked in Resources, for considerations around gender and NPSP.


A Relationships list on a contact record
NPSP comes with 24 preconfigured relationships, all managed in the Relationship object in Salesforce Setup, not NPSP Settings. To review the existing relationship types:

  1. Click the gear icon (Setup menu gear icon), then click Setup.
  2. Click the Object Manager tab.
  3. From the list of objects, select Relationship.
  4. Click Fields & Relationships.
  5. Click the field labeled Type.
  6. Scroll down to the Values list.

Picklist Values from the Relationship object in Object Manager

Those 24 preconfigured relationships more than meet the needs of many nonprofits, and you can Deactivate any relationship to remove it if you’d like a shorter list. And, as we mentioned, the system allows for configuration and customization if you need more or different relationships. Let’s dig into that now.

NPSP Relationship Settings

To navigate to relationships settings for NPSP, click NPSP Settings in the navigation bar, or find and select it through the App Launcher (The App Launcher icon), click Relationships, then click Relationships from within the expanded menu to see all the settings. 

Let’s check out the four settings that control how relationships behave in NPSP. 

The Relationships setting menu

Reciprocal Method (1) determines how NPSP assigns the correct corresponding relationship when you relate one contact record to another. The options are:

  • List Settings, the default, works in conjunction with gender and other settings to assign the appropriate reciprocal relationship. For example, if you connect a boy as Son on a woman’s contact record, she would automatically get the relationship type of Mother on his record. Most admins choose List Settings for their orgs.

    List Settings determines the appropriate gender-specific relationship type based on one of two methods:

    • The values in the specified Gender field on contact records.
    • If Salesforce can’t identify a gender on the contact, it evaluates the Salutation field to determine gender, assigning a male value to the Mr. salutation and so on.

If Salesforce can’t determine a contact’s gender based on either method, it assigns a gender-neutral value such as Parent or Spouse.

  • Value Inversion, which doesn’t rely on a gender field. Instead, you create picklist values on the relationship object's Type field for both Mother-Daughter and Daughter-Mother. The key is to enter a type with a delimiter that allows the system to swap the relationship types. For example, a relationship with a type of Mother-Daughter would receive a reciprocal type of Daughter-Mother.

The Gender Field (2) setting specifies which field tracks a contact’s gender to create a reciprocal relationship for the List Settings Reciprocal Method. For example, if you create a relationship from a Mother contact record to a female contact record, NPSP creates a reciprocal relationship of Daughter and not Son or Child.

The Gender field is a picklist on the contact record with out-of-the-box values, but you can also create and use your own custom picklist values. If the gender picklist value is not Male or Female, the reciprocal relationship created will be gender neutral.

The Allow Auto-Created Duplicate Relations (3) setting is specific to the feature that auto-creates relationships based on a custom lookup field. By default, when an auto-created relationship is triggered, and a relationship between those contacts of the same Type already exists, NPSP won’t create a new, duplicate relationship. You can override this behavior by checking this box and Salesforce will create a new relationship each time the auto-create is triggered, regardless of any existing relationships.

The Enable Custom Field Sync (4) setting allows you to sync custom relationship fields between the two contacts in a relationship pair. So if your organization adds a custom field to the relationships object, you’ll want to review this setting.

The Reciprocal Relationships List in Action

If you choose List Settings for the Reciprocal Method (the default), then the reciprocal relationships list determines reciprocal relationships.

Remember, this is when NPSP and Salesforce try to determine a contact’s gender — based on the Gender field setting or Salutation — then create a reciprocal, gendered relationship (such as Husband or Mother). If no gender is specified, Salesforce uses a gender-neutral value (like Spouse or Parent).

Let’s follow along to see how this works at our (fictional) nonprofit No More Homelessness (NMH). Sofia Rivera, a Development Associate at NMH, created a new contact record for Roberto Alvarez earlier in this module. Sofia selected Male in the Gender field based on how Roberto identifies. Sofia adds another contact to the household, Alex Alvarez, and selects Unknown (a custom value NMH created) in the Gender field. 

Sofia knows that these two contacts are part of the same household and that Alex is Roberto’s child, so she creates a relationship record from Alex’s contact record and chooses the Child relationship type, rather than Son or Daughter, because Alex’s gender is unknown. Meanwhile, NPSP automatically creates the reciprocal relationship record Father for Roberto because his gender is listed as male.

Two relationship records with the Type field highlighted to show a Father and Child relationship

Add a New Reciprocal Relationship

The Development department at NMH requests a way to track the deceased spouse of a donor on the contact record in NPSP, a common need for many nonprofits. Gorav Patel, the Salesforce Admin at our (fictional) nonprofit NMH, gets to work creating the reciprocal relationship his team needs. Let’s follow along.

First, Gorav needs to update the relationship type picklist field to add the value of “Deceased Spouse.”

  1. Click the gear icon (Setup menu gear icon), then click Setup.
  2. Click the Object Manager tab.
  3. From the list of objects, find and select Relationship.
  4. Click Fields & Relationships.
  5. In the list of fields, click Type. You may have to click View All to find the field.
  6. Under Values, click New.

    Relationships object new value for Type picklist
  7. Type the new values into the text box, placing each on separate lines. In this case, Gorav just adds values for Deceased Spouse, Widow, Widower, and Surviving Spouse.

    The Picklist Values form
  8. Click Save.

Now Gorav needs to create a new reciprocal relationship. He does this in NPSP Settings.

  1. Navigate to NPSP Settings by finding and selecting it in the App Launcher (The App Launcher).
  2. Click Relationships, then Relationship Reciprocal Settings.
  3. Click New Reciprocal Relationship.

    Relationship Reciprocal Settings page
  4. In the New Reciprocal Relationship interface you’ll see fields for a Name, Male value, Female value, and Neutral value. Gorav enters these values:

    1. Name: Deceased Spouse
    2. Male: Widower
    3. Female: Widow
    4. Neutral: Surviving Spouse

      Relationship Reciprocal Settings
  5. Click Create Reciprocal Relationship.

Gorav repeats the new reciprocal relationship process for Widower, Widow, and Surviving Spouse

Then he creates Former Spouse as well, to record divorces and separations. NMH doesn’t want to mistakenly seat divorced spouses together at a fundraiser. 

Note

Check out Manage Relationships Settings in Resources for details on how to create this and other Relationship values.

Add a New Auto-Created Relationship

Auto-created relationships allow a custom contact lookup field on the contact or campaign member objects to automatically trigger the creation of a new relationship type of your choice. Use the relationships autocreation setting to automatically establish a new relationship between these two contacts.

NMH operates a career counseling program that includes a mentorship component. The NMH staff wants to be able to see this mentor/mentee relationship on client contact records. 

A mentor and mentee meet at NMH

Before Gorav can add a new auto-created relationship, he creates a custom contact lookup field on the Contact object called Mentee. He also updates the picklist values on the Relationship object Type field and adds a new reciprocal relationship in NPSP Settings for Mentor and Mentee.

Now Gorav is ready to add his new auto-created relationship. Let’s follow along:

  1. Navigate to the NPSP Settings tab by finding and selecting it in the App Launcher (The App Launcher icon).
  2. Select Relationships, then Relationship Autocreation.
  3. Click New Automatic Relationship.
  4. Make the following selections:

    Relationships Autocreation settings and options

    1. Select the Object with which you want to make the association. Gorav chooses Contact.
    2. Select the Field that triggers the autocreation. Gorav chooses Mentee.
    3. Choose the Relationship Type. The reciprocal type will automatically create as well. Gorav chooses Mentee.
  5. Click Create Automatic Relationship.

Now an NMH program staffer can easily connect a mentor and mentee by using the new lookup field on the Contact record. For example, if they add program participant Tim Hill as Roberto’s mentee in the Mentee field on Roberto’s contact record, it also creates new relationship records.


Adding reciprocal relationship directly on the contact record

Alright, we’ve seen how to customize household naming, we’ve learned how address management works, and we’ve dug into creating custom relationships between contacts. 

Next we’re going to explore an issue that plagues nearly every CRM implementation — duplicate data!

Resources

Keep learning for
free!
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities