Pardot Custom Field Mapping with Salesforce: The API Field Name Trap
- April 26, 2022
- Salesforce and Pardot, Salesforce Ben | The Drip
Pardot custom field mapping is more challenging than you may think. In Pardot, you have the Prospect object – in Salesforce, however, there are more objects at play.
Salesforce Leads and Contacts are separate records that represent the same person – in Pardot, these “people” records are combined under one umbrella (“Prospects”). Someone can either be a Lead or a Contact at any point in time.
Being two separate objects in the CRM, Leads and Contacts have their own fields. In short, when you create a custom Lead field in Salesforce, it does not automatically get created on the Contact object.
The Pardot-Salesforce connector is designed to sync data regardless of whether the Prospect (in Pardot) is a Lead or Contact (in Salesforce). This is important because when Leads are converted into Contacts (depending on where they are in the sales cycle) you want the related Prospect record to carry across, so the Contact continues to sync with the same Prospect record.
Map Salesforce Custom Fields with Pardot
As Leads and Contacts are two separate objects in the CRM, including their fields, what are the implications for those marketers that use Pardot?
- You will want Lead-only fields, Contact-only fields, and fields that appear on both objects. Mapped Lead fields will carry across the data from Lead → Contact during Lead conversion.
- For any Lead/Contact data you want to sync to Prospect records, you must map the Salesforce fields with Pardot fields. You map Pardot fields from Pardot Settings (Configure Fields → Prospect Fields)
- There are plenty of resources about how to create Pardot Prospect custom fields (example).
- For each Prospect field, you will see a ‘salesforce.com Field Name’ dropdown box. Scroll to find the name of the field you wish to map.
The Pardot Field Mapping Challenge
But wait! What if you see two versions of the same field appearing in the list? One is the Lead field, the other is the Contact field. So, which do you choose?
The answer is none. Stop right there – you need to reconfigure your fields so that they share the same API Name.
What is a Salesforce Field API Name?
The API Name is what identifies a Salesforce field when exchanging data with other applications. Pardot (and other integrated applications) know how to receive data from Salesforce – and where to send data; the API name is a unique identifier for the Salesforce field.
When you create a Salesforce custom field, you define the:
- Field Label: what users see
- Field Name: what applications see
based on the Field Name when you create a Salesforce custom field:
The Pardot API Field Name Trap
Let’s use an example to show how easy it is to get trapped with API Field Names.
You want a field called ‘Location of Choice’ to capture data on Leads and Contacts, and sync to Pardot Prospects.
It could look like this on your Lead object in Salesforce Setup:
In order for Pardot to sync with both the Lead and Contact fields (depending on where the prospect is in their journey) the API Field Name must be exactly the same on the Contact object. A Contact field with a different API Field Name, like the one in the image below, would not work:
Any difference in the name will result in two options appearing in the ‘salesforce.com Field Name’ field mapping dropdown list when configuring on the Pardot side.
Even small differences – like that pesky ‘of’ that slipped in – will cause issues.
As you can only choose one, your Prospect custom field would only sync with either Leads or Contacts (excluding half, or more, of your database).
Pardot-friendly Custom Fields
We’ve seen that even a small difference in the Field’s API names will trap you. Here are some tips to avoid a data headache:
- Keep the Field Labels consistent, with a logical naming convention. As the Field Name is generated automatically based on the Field Label, you will breeze through without having to think twice.
- Field API Names are case sensitive – avoid mixing capitals and lowercase letters!
- Ensure you use the same data type across Salesforce and Pardot fields, e.g. use text field types, and not a mix of text and number fields!
- When you create a Salesforce custom field, ‘__c’ will be automatically added to the end. This is normal, and you don’t need to be concerned about it.
-
Fix Prospect Custom Field Issues
Note: Editing the Salesforce field API Name should be done with caution. In fact, if you attempt to do this, you will be warned:
Don’t ignore this warning. The API name could be referenced in many places, ‘under the hood’, both within your Salesforce org (e.g. Apex triggers, validation rules, formula fields), and beyond, in integrations.
Getting visibility into where it’s referenced isn’t so simple, and I would recommend seeking a third-party change intelligence solution that leverages the Dependency API to locate how and where the field is being used.
Once you have full visibility into how and where this field is being referenced elsewhere, edit the Salesforce API Field Name. Then, on the Pardot side, you will see one ‘salesforce.com Field Name’ in the dropdown box that will represent both the Lead and Contact field.
Now Leads, Contacts, and Pardot Prospects can sync in harmony. You will sleep easy knowing data will sync consistently, no matter where a person is in their prospect journey.
This Pardot article written by:
Salesforce Ben | The Drip
Lucy Mazalon is the Head Editor & Operations Director at Salesforceben.com, Founder of THE DRIP and Salesforce Marketing Champion 2020.
Original Pardot Article: https://www.salesforceben.com/the-drip/mapping-pardot-and-salesforce-custom-fields-api-name/
Find more great Pardot articles at www.salesforceben.com/the-drip/
Pardot Experts Blog
We have categorized all the different Pardot articles by topics.
Pardot Topic Categories
- Account Based Marketing (ABM) (7)
- Business Units (14)
- ChatGPT / AI (3)
- Completion Actions (5)
- Connectors (10)
- Custom Redirects (4)
- Data Cloud (2)
- Demand Generation (8)
- Dynamic Content (6)
- Einstein Features (12)
- Email Delivery (17)
- Email Open Rates (3)
- Pardot A/B Testing (2)
- Email Mailability (16)
- Do Not Email (1)
- Double Opt-in (2)
- Opt Out / Unsubscribe (14)
- Email Preferences Page (6)
- Engagement Studio (16)
- Industries (1)
- Non Profit (1)
- Landing Pages (9)
- Lead Generation (1)
- Lead Management (13)
- Lead Routing (3)
- Lead Scoring (16)
- Leads (3)
- Marketing Analytics – B2BMA (9)
- Marketing Automation (1)
- Marketing Cloud (3)
- Marketing Cloud Account Engagement (4)
- Marketing Cloud Growth (2)
- New Pardot Features (6)
- Opportunities (2)
- Optimization (2)
- Pardot Admin (64)
- Duplicates (1)
- Marketing Ops (1)
- Pardot Alerts (1)
- Pardot API (2)
- Pardot Automations (3)
- Pardot Careers (12)
- Pardot Certifications (4)
- Pardot Consulting (1)
- Pardot Cookies (3)
- Pardot Custom Objects (3)
- Pardot Email Builder (8)
- Pardot Email Templates (9)
- HML (6)
- Pardot Events (16)
- Pardot External Actions (1)
- Pardot External Activities (4)
- Pardot Forms (29)
- Form Handlers (8)
- Pardot Integrations (20)
- Data Cloud (1)
- Slack (1)
- Pardot Lead Grading (5)
- Pardot Lead Source (2)
- Pardot Lightning (1)
- Pardot Migration (1)
- Pardot Nurture / Drip Campaigns (1)
- Pardot Personalization (3)
- Pardot Profiles (1)
- Pardot Releases (18)
- Pardot Sandboxes (2)
- Pardot Segmentation (5)
- Pardot Strategy (7)
- Pardot Sync (2)
- Pardot Sync Errors (1)
- Pardot Tracker Domains (5)
- Pardot Training (3)
- Pardot Vs Other MAPs (4)
- Pardot Website Tracking (2)
- Reporting (22)
- Salesforce and Pardot (31)
- Marketing Data Sharing (2)
- Pardot Users (3)
- Salesforce Automation (5)
- Salesforce Flows (2)
- Salesforce Campaigns (20)
- Salesforce CRM (3)
- Record Types (1)
- Salesforce Engage (3)
- Salesforce Queues (2)
- Security and Privacy (1)
- Tags (3)
- The Authors (504)
- Cheshire Impact (9)
- Greenkey Digital (51)
- Invado Solutions (37)
- Jenna Molby (9)
- Marcloud Consulting (6)
- Nebula Consulting (60)
- Pardot Geeks (44)
- Salesforce Ben | The Drip (235)
- SalesLabX (3)
- Slalom (4)
- Unfettered Marketing (46)
- Uncategorized (1)
- Website Tracking (2)
- Website Search (1)
More Pardot Articles
See all posts
This Pardot article written by:
Salesforce Ben | The Drip
Lucy Mazalon is the Head Editor & Operations Director at Salesforceben.com, Founder of THE DRIP and Salesforce Marketing Champion 2020.
Original Pardot Article: https://www.salesforceben.com/the-drip/mapping-pardot-and-salesforce-custom-fields-api-name/
Find more great Pardot articles at www.salesforceben.com/the-drip/