Skip to content

1. Setup Guide

Giuseppe edited this page Feb 10, 2023 · 32 revisions

Email Validator for Pardot - Setup Guide

0. Prerequisites

To use this package you would need to have access to a Salesforce org with at least 1 Pardot Business Unit already configured. Email Validator for Pardot is a Marketing App Extension which uses the new External Action (Action Type) and External Activity (Activity Type) features of Pardot:

Pardot - Marketing App Extensions

Learn more about Marketing App Extensions here: https://help.salesforce.com/s/articleView?id=sf.pardot_extensions_overview.htm&type=5

1. Install Package

The package can be installed from the following URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t7S000000HOPi&isdtp=p1

  • Select “Install for Admins Only” and click on "Install"
Screenshot 2023-01-10 at 17 35 45

2. Assign the Permission Set

From Salesforce Setup, open the Permission Set menu item.

Find and assign the Permission Set “Email Validator Admin” to “B2BMA Integration” User and any other user needing access to Email Validator Setup & Email Validator Logs:

Email Validator Admin permission set

Email Validator Admin Permission Set - Assign to user

3. Select an Email Validation API

To use Email Validator, you need to have at least an API key provided by one of the supported services. The steps are always the following:

  1. Obtain an API key
  2. Save the API key on the Email Validator Setup page
  3. Activate the relevant Action Type in the Email Validator Marketing App Extension
  4. Create the related Activity Type
  5. Associate Pardot Business Units to the Marketing App Extension

Follow the configuration of one of more services before continuing with the setup:

4. Pardot Named Credential & Connected App

To be able to write back the email validation results into Pardot (as External Activities), we need to create a Salesforce Connected App as well as a Named Credential

Connected App

  1. Create a Self-signed certificate following the instructions from https://help.salesforce.com/s/articleView?id=sf.security_keys_creating.htm&type=5
  2. Download the Certificate
  3. Create a Connected App with the following settings:
    • Setup > App Manager > New Connected App
    • Choose a name for the app (e.g. “Email Validator Pardot“)
    • Check “Enable OAuth Settings
    • Under “Callback URL” paste the following URLs:
      https://login.salesforce.com/services/oauth2/callback
      https://test.salesforce.com/services/oauth2/callback
    • Check “Use digital signatures” and upload the certificate created above
    • Add the following OAuth Scopes to the Connected App:
      Manage Pardot services (pardot_api)
      Perform requests at any time (refresh_token, offline_access)
    • Verify that the following checkboxes are checked:
      Require Secret for Web Server Flow
      Require Secret for Refresh Token Flow
    • Click on Save
    • From the Connected App page, click on Manage and Edit Policies to make sure you select "Admin approved users are pre-authorized" in the OAuth Policies > Permitted Users and scroll down to give access to all relevant Profiles or Permission Sets.

Pardot Connected App EmailValidatorConnectedAppPolicy

Named Credential

Let's now create a Named Credential to connect to Pardot APIs and update Email Validator settings to use that.
9. Navigate to Setup > Security > Named Credentials

  1. Create a New Legacy Named Credential with the following parameters:

Label: Email Validator Pardot

Name: Email_Validator_Pardot

Url: https://pi.pardot.com (or https://pi.demo.pardot.com if you're using a Demo org)

Certificate: select the self-signed certificate created earlier

Identity Type: Named Principal

Authentication Protocol: JWT Token Exchange

Token Endpoint Url: https://login.salesforce.com/services/oauth2/token

Issuer: copy the full Consumer Key from the Connected App created above

Screenshot 2022-12-19 at 17 19 58

Named Principal Subject: your username in the org

Audiences: https://login.salesforce.com

Token Valid for: 30 Seconds

JWT Signing Certificate: select the self-signed certificate created earlier

It should look like this at the end:

PardotNamedCredential





5. Customize Settings

Open the Email Validator Setup tab from the "Email Validator for Pardot" App. Screenshot 2023-01-09 at 16 09 16

This page lets you configure:

  • Pardot Named Credential (this is the API Name of the named credential we just created, for example, Email_Validator_Pardot)
  • External Activity return values (could be any text, we recommend a short one, for example, Pass for good addresses & Warn for potential fake prospects or undeliverable emails)
  • API Keys (and other custom settings) for the different Email Validation services (need to choose at least one of these, a green checkmark will let you know if the API key value has been stored).

NOTE: For security reasons API keys can only be overwritten and they're never displayed.

6. Test it

You're good to go!

Follow the User Guide to create a test Engagement Program and test the solution.

7. Troubleshooting

The easiest way to debug Email Validator in case the solution doesn't seem to work is by using the "Email Validator Log" object:

EmailValidatorDebug

Clone this wiki locally