How to Use Custom Object Fields in Pardot HML
- December 1, 2022
- HML, Pardot Custom Objects, Salesforce Ben | The Drip
Pardot HML enables you to easily add personalization because it dynamically pulls in data specific to the prospect that is viewing your Pardot marketing assets – including emails, email, dynamic content, landing pages, forms, and user email signatures.
You may already know that it’s easy to select a merge field from the Pardot merge picker, including prospect (Lead/Contact) fields, user fields, and organization-level fields (such as your mailing address).
For your next campaign, you may want to take HML further. Personalization based on custom object data isn’t available out-of-the-box. For example, you may like to insert the name of the product the prospect has just purchased, or the date when their onboarding process will start.
It’s not easy – but it’s not impossible. You have to find a way to sync the field data from the custom object to the prospect object, which is possible using two possible workarounds.
Note: Before you continue, do check that this is now not native functionality (it’s not planned at the time of writing, December 2022). The rate that the Pardot (Account Engagement) product is developing means that these workarounds may not be necessary.
Option 1: Lead or Contact Formula Field to Prospect Field
For this first workaround, we’re going to create a formula field on the Lead or Contact objects* that will reference your custom object field. The data in the custom object field will appear as read-only text in the Lead/Contact formula field when synced to Pardot/.
*Note: Take a moment to think about your Salesforce data model. In 99% of the cases, the related object you want to pull data from will be related to either the Lead or the Contact, not both. Hopefully, it will be obvious but is certainly worth checking. If it is applicable to only one object, then you will need to segment you Pardot lists appropriately before sending using the ‘Prospect CRM status’ filter (which will only include prospects who are Leads, or prospect who are Contacts, depending on your selection).
Once we have the data on the Lead/Contact, we can map the field to a Pardot prospect custom field. Here is how your field data will move around:
- Data starts in the custom object field (Salesforce)
- Goes to a Lead or Contact formula field (Salesforce)
- Syncs to a prospect custom field (Pardot)
Step 1: Create a formula field
Create a formula field on the Lead or Contact object that pulls the field data from the custom object. The output type will be ‘text’:
For example, I have a project custom object that has a field ‘start date’. I want to pull the start date into an email, so this formula field below will pull that start date in from the project the contact is related to.
Step 2: Map formula field to Pardot
Create a new prospect custom field in Pardot (text), and map it to the Salesforce formula field. That custom prospect field will be available to use from the Pardot merge picker.
Caution!
- Clue yourself up on what triggers the Pardot/Salesforce sync. Changes to formula fields do not trigger the connector sync, so if you decide to use this method be aware of how your data is being updated. It’s worth running a data check before sending an email (by using dynamic lists or exporting to CSV to check the field data).
- What are the data relationships that are impacting that field? For example, can a contact be related to more than one project in Salesforce? What happens then? Which should Salesforce (and Pardot) take as the truth? (in this use case, it would be the most recently created project, or the project with the earliest start date).
Ensure you think these points through carefully (or seek the advice of a Pardot expert) before implementing this workaround.
Option 2: Pardot Custom Object to Prospect Field
For the second workaround, we’re going to use Pardot custom objects and transform the data from the custom object record to the prospect record. Note that you must have Pardot Advanced edition, or have the custom object add-on.
You can pull custom object data directly from Salesforce into a Pardot custom object, but it’s a one-way sync, and it’s read-only. If you can get the data into a prospect custom field, then we are good to go!
- Data starts in the custom object field (Salesforce)
- Syncs to a custom object field, read-only (Pardot)
- Inserted into a prospect custom field (Pardot)
How do you insert the data into a prospect field from a custom object field? You can use an automation rule to say ‘when prospect custom object field is …, then set prospect custom field to …’.
Caution!
Unlike Salesforce formula fields, Pardot automation rules require you to define the exact value that the automation rule needs to insert into the target field. You can see that this would work for picklist/dropdown values, where there is a defined set of possible values. The potential upkeep is why experts would recommend option 1.
However, a plus point. In cases where the processing limits on the Salesforce side are already stretched, to avoid exceeding the governor limits (and stressing out your admin) this solution means you can keep it within Pardot and have control over it.
Summary
If you want to take HML further and add personalization based on custom object data, you can see that it’s not easy, but it’s not impossible. When you open the Pardot merge picker, you won’t see custom object fields, and so the trick is to get the custom object data into the prospect fields using one of the two workarounds in this post.
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/how-to-use-custom-object-fields-in-pardot-hml/
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/how-to-use-custom-object-fields-in-pardot-hml/
Find more great Pardot articles at www.salesforceben.com/the-drip/