Quick Start
Get Started as an Account Engagement ISV
Extend the Email Builder Experience
Marketing App Extensions
External Activity
External Actions
After you set up an extension, submit a request to create an activity type record. Then, submit a request to pass prospect activities to Account Engagement as they occur.
Keep these considerations in mind when working with External Activity.
DeveloperName field from the MarketingAppExtension endpoint maps to the extension field on the external-activities endpoint used to submit the activity.IsActive field on the activity type and extension must be set to True. To set the IsActive field, select Active in Automations on each record in Setup.To work with external activities, authenticate to Account Engagement API and Tooling API using OAuth. Make sure that the appropriate OAuth Scopes are set up in your connected app:
To minimize the number of times you have to authenticate, grant new access tokens as they expire by adding the Perform requests on your behalf anytime (refresh_token, offline_access) scope.
To add an activity type to your marketing app extension, send a POST request to the MarketingAppExtActivity endpoint. In this example, we configure an activity type “registered” for the extension we set up in the Marketing App Extensions section.
1POST /services/data/v55.0/tooling/objects/MarketingAppExtActivity HTTP/1.1
2Host: YOUR_DOMAIN
3Authorization: Bearer YOUR_ACCESS_TOKEN
4Content-Type: application/json
5Cookie: YOUR_COOKIE_ID CookieConsentPolicy=0:0
6Content-Length: 187
7{
8 "DeveloperName": "registered",
9 "MasterLabel": "Registered for Webinar",
10 "MarketingAppExtensionId" : "01234567890123MAA",
11 "IsActive" : "true",
12 "Description": "An event for registration"
13}A successful request returns an 201 Created response.
To submit activity data, send a POST request to the /api/v5/external-activities endpoint.
1POST /api/v5/external-activities HTTP/1.1
2Host: <PARDOT_ENVIRONMENT_URL>
3Authorization: Bearer <TOKEN>
4Content-Type: application/json
5Content-Length: 107
6{
7 "extension": "webinar",
8 "type": "registered",
9 "email": "demo@test.com",
10 "value": "Webinar 2"
11}Note