Create Fields and Connect Them with Advanced Mapping
Understand the Staging Object
In this step, you create a field and use Advanced Mapping to make it available for Gift Entry. But, first, take a moment to review the NPSP Data Import object.
NPSP Data Import records hold information before it is imported to permanent homes in target object records such as contacts, accounts, and opportunities. Your data is safely stored in Salesforce, and your target records are safe from being changed until you’re sure the data is correct.
The NPSP Data Import object is already configured to include most of the common fields on contact, account, opportunity, and other object records.
To make this process work with a new field, though, you need to:
- Create the field on the target object.
- Create the field on the NPSP Data Import staging object.
- Use Advanced Mapping to connect the fields.
In this project, you add a Source Code field to track information about a direct mail piece. You may use source codes on your appeals already.
Create a Field on the Target Object
Start by creating the Source Code field on the Opportunity object where this information will ultimately be stored.
- Navigate to Setup (), and select Setup.
- Click the Object Manager tab.
- Find and select Opportunity. It’s fastest to enter
opportunity
in the Quick Find field to filter the list.
- Select Fields & Relationships.
- Click New.
- Select Text as the data type, then click Next.
- Enter these details about the field
- Field Label:
Source Code
- Length:
13
- Field Name:
Source_Code
- Click Next.
- Click Next.
- On the Add to page layouts step, deselect all layouts and then select only Donation Layout.
- Click Save.
Create Staging Fields on the NPSP Data Import Object
Now create the companion field on the NPSP Data Import Object. Remember, the data entered in Gift Entry is stored here before it is sent to opportunity records. It must match the target field in field type and length.
- Click the Object Manager tab in Setup.
- Find and select NPSP Data Import. Remember you can filter the list using the Quick Find field.
- Select Fields & Relationships.
- Click New.
- Select Text as the data type, then click Next.
- Enter these details about the field
- Field Label:
Opportunity Source Code
- Length:
13
- Field Name:
Opportunity_Source_Code
- Click Next.
- Click Next.
- Click Save.
Connect Staging and Target Fields
At this point, our fields exist on our target object (Opportunity) and our staging object (NPSP Data Import). Now you need to connect them using Advanced Mapping.
- Find and select NPSP Settings from the App Launcher ().
- Select System Tools in the menu, then select Advanced Mapping for Data Import & Gift Entry.
- Click Configure Advanced Mapping. It may take a minute to load.
- Click the Show Actions button () at the end of the Opportunity row of the table.
- Select View Field Mappings.
- Click Create New Field Mapping.
- Select Opportunity Source Code (Opportunity_Source_Code__c) in the Field Label field for the Source (NPSP Data Import Object).
- Select Source Code (Source_Code__c) in the Field Label field for the Target (Opportunity Object).
- Click Save.
When you receive the success message on screen, you know your fields are mapped. Now it’s time to bring these new fields to Gift Entry—but first, click Verify to check your work before you move on.
Resources
- Salesforce Help: Customize Advanced Mapping
- Trailhead: Import Data with Nonprofit Success Pack (NPSP)