Sercante: Flow Actions for Pardot - Configuration Guide
Install Guide - Configuration Guide - Examples - Admin Actions - Data Actions
Granting app access to Pardot
Watch the video above for a quick overview of what needs to be created, then use the details below for building your own.
Create Self Signed Certificate
- From Salesforce Setup, search for "Certificate" in the Quick Find bar, click on "Certificate and key Management"
- Click Create Self-Signed Certificate
- Provide a Label and Unique name. Recommended: Include the Year as part of the Name
- Leave the other defaults as is, click Save
- Click Download Certificate and save it somewhere you can quickly get access to it in a later step.
Salesforce Self-Signed Certificates have a 1 year life-span. You will need to create a new one every year, so please create a task/reminder to take care of this next year.
Create a Connected App
- From Salesforce Setup, search "App Manager" in the Quick Find bar, click the result
- Click Create New Connected App
- Fill out some Basic Information
- Connected App Name: Flow Actions for Pardot
- API Name: just let it auto complete
- Contact Email: use your email address
- Description: Grants Flow Actions for Pardot API access
- Check the Enable OAuth Settings, fill out more OAuth details:
- Enable for Device Flow: leave unchecked!
- Callback URL: https://login.salesforce.com/services/oauth2/callback (replace login.salesforce with test.salesforce for a Sandbox)
- Use digital signatures: check
- Choose File: pick the Certificate you downloaded as part of the previous section. This will need to be replaced each year.
- Selected OAuth Scopes: pardot_api and offline_access
- Click Save
- Copy the Consumer Key and paste it somewhere easy to access for later use (this is a bit different from when the video was recorded)
- Click the Manage Consumer Details button (you might be asked to login again).
- (currently) you will land in a Salesforce Classic Screen. Clicking the Copy button under Consumer Key
- Close the browser tab (bringing you back to the LIghtning page you were on)
- Click Manage
- Click Edit Policies
- Change "Permitted Users" from "All users may self-authorize" to "Admin approved users are pre-authorized"
- Click Save, which brings us back to the "Manage Connected App" screen
- Pre-approve the user(s) you want to use by either adding their Profile, or a Permission set you create specifically for this.
- One Option: Create Empty Permission Set
- A Permission Set is used to pre-authorize a User to use the Connected App to connect to the Pardot API.
- In Salesforce Lightning, Navigate to Setup
- Navigate to Permission Sets under Administration > Users, click on New
- Use the following values (or use whatever makes sense for you)
- Label: Pardot API Access
- API Name: let it auto populate
- Description: Grants access to Pardot via API. No permissions specified
- Click Save
- Add the new Permission Set to the User created/chosen above
- When viewing the Permission Set, click Manage Assignments
- Click Add Assignments, and select the correct User
Create a Named Credential
Note: The video above was recorded prior to Salesforce creating their "new" Named Credentials, so the steps slightly vary below.
- From Salesforce Setup, search "Named" in the Quick Find bar, click "Named Credentials"
- Click the arrow next to the New button, and create a New Legacy Named Credential
- Give it a label and a name. As a suggestion:
- Label: Flow Actions for Pardot
- Name (let it auto fill to Flow_Actions_for_Pardot). Copy the value here as you will need it later
- URL: https://pi.pardot.com (or https://pi.demo.pardot.com if a Sandbox, Pardot Dev/Demo org)
- Provide Authentication details
- Identity Type: Named Principal
- Authentication Protocol: JWT Token Exchange
- Token Endpoint Url: https://login.salesforce.com/services/oauth2/token (replace login.salesforce with test.salesforce for a Sandbox)
- Scope: leave blank
- Issuer: paste the Consumer Key from the Connected App
- Named Principal Subject: provide the SF Username of the User who will making API requests. Note: this user must be able to do all the things you need to in Pardot, and cannot be the b2bmaintegration user
- Audience: https://login.salesforce.com (https://test.salesforce.com for a Sandbox)
- Token Valid for: 10 Minutes
- JWT Signing Certificate: choose the Self-Signed Certificate we created earlier
- Click Save
If you have multiple Pardot Business Units AND you want to have each Business Unit use a different User to make API requests, you will need to repeat the Named Credential step for each User.
(optional) Create a Remote Site Setting
If you are going to use the Form Handler actions, you will need a Remote Site Setting in Salesforce for it to allow the URL request to work.
- From Salesforce Setup, search "Remote" in the Quick Find bar, click "Remote Site Settings"
- Check to make sure you don't already have an entry with your Pardot Tracker Domain as a "Remote Site URL". If you do, you are done!
- Click the button to create a "New Remote Site"
- Remote Site Name: Pardot Tracker Domain (if adding more than 1, be more descriptive)
- Remote Site URL: Paste the actual Pardot Tracker Domain here. ex:
https://go.company.com
- This needs to match the start of the URL you are using for your form handlers.
- Add a Description: Used to enable Flow Actions for Pardot to communicate to Form Handlers
- Active: Checked
- Click Save
Providing Defaults to Flow Actions for Pardot
Each Flow Action needs to know the Pardot Business Unit Id, as well as the Named Credential (the user) for making API requests. You can provide this info each time, or you can provide a set of default values simplifying each request.
Note: you can always override these defaults at the Flow Action level!
- From Salesforce Setup, search "Named" in the Quick Find bar, click "Named Credentials"
- Find your Named credential and click on its Label
- Copy the "Name" (not the Label) of the Named Credential and paste it somewhere easy to access
- From Salesforce Setup, search "Pardot" in the Quick Find bar, click "Pardot Account Setup" and copy your Pardot Business Unit ID. If you have more than 1, pick the Business Unit you plan to use the most with the app.
Now that we have the information collected, let's save these default values
- From Salesforce Setup, search "Custom Metadata" in the Quick Find bar, click "Custom Metadata Types"
- Click "Manage Records" for Flow Actions for Pardot Default
- Click Edit for the Default Values
- Provide the defaults:
- Pardot Business Unit Id: (should start with OUv...........)
- Named Credential: (should not contain spaces)
Now, you are ready to get building! Check out our Example videos to get a feel for how to build your own.