Salesforce Pardot API

Some Questions and Answers on Salesforce Pardot API

Have you ever wondered if, we can Query Pardot Engagement History in Salesforce by SOQL directly?

Answer: No, Because The dataset "Pardot Engagement History" can be queried in SOQL from Analytics Studio. As this is not a Salesforce Object, but an Analytics Dataset, you won't be able to execute directly a query on it from SFDC. So, we can Query the Pardot Engagement History in Salesforce from CRM Analytics Studio using SOQL Queries. For Example:

Question: So how can we query Pardot Activities in Salesforce Apart from Analytic Studio?
Answer: With the Help of Pardot API.

The Pardot API gives your application access to Pardot's latest data. You can use the API to perform some common operations on Pardot objects, including:

  • create - Creates an object with the specified parameters.
  • read - Retrieves information about the specified object.
  • query - Retrieves objects that match specified criteria.
  • update - Updates elements of an existing object.
  • upsert - Updates elements of an existing object if it exists. If the object does not exist, one is created using the supplied parameters.

dont miss out iconDon't forget to check out: How Salesforce Pardot AI Boosts Email Engagement? | Learn Here

You must authenticate using a Salesforce OAuth endpoint. See Authentication ( for more. Also, there are some considerations to keep in mind when executing requests. For update requests, only the fields specified in the request are updated. Everything else remains unchanged. If a required field is removed during the update, the request will be rejected.

Pardot Provides Lots of Functionality by which we can query it in Salesforce. For Reference Check this Link:

Example: Query the Pardot Engagement Activities by the Postman:

  1. First, we need to create a Connected App in our org. Check this link for reference :(
  2. Call out your org by using Postman.
    • We need an access token for that we generate a refresh token. So, we don't need to generate access tokens again and again:

    • now Do the Query:

    • Response in Postman from Pardot:

Note: Use hostname = if you are working with Production Org
use hostname = if you are working with Sandbox or Developer org

    • Now Callout a Pardot by using Apex Code:

dont miss out iconCheck out another amazing blog by Mohit here: What is Batch Apex in Salesforce? A Definitive Guide

    • Response After Execution:

So, we can query Pardot Activities with the help of Integration.

    • Pardot Environment when Someone Made a Request:

    • Pardot Limits and Usage:

Pardot Fields and Objects for Query, Check This Link:


Popular Salesforce Blogs