Congratulations on installing JB Email Send Log. If you ran a new install, make sure to follow these steps to configure the JB Email Send Log. Make sure the user who performs the setup is a system administrator + all users are assigned the right permission sets.
App Setup & Configuration
The External Credential securely stores the client secrets and IDs needed for OAuth.
-
In Salesforce Setup, search for and select Named Credentials.
-
Select the External Credentials tab.
-
Click New.
-
Set the following properties:
-
Label:
ESL EXTERNAL CREDENTIAL -
Name:
ESL_EXTERNAL_CREDENTIAL -
Authentication Protocol: Custom
-
-
Click Save.
The Principal links the credential to the actual stored values.
-
On the
ESL_External_Credentialpage, scroll to the Principals section. -
Click New.
-
Set the properties Name:
ESL_PRINCIPAL -
Click on Add twice, next to Authentication Parameters.
-
Add the parameters for client_id and client_secret and click Save.
-
Wait for the screen to save and close.
This credential points to the Marketing Cloud Token Endpoint and enables the custom body required for authentication.
-
In Salesforce Setup, search for and select Named Credentials.
-
Click New.
-
Set the properties:
-
Label:
ESL MC AUTH API -
Name:
ESL_MC_AUTH_API -
URL: Enter your Marketing Cloud Authentication URL (e.g.,
https://mc-xxxxxx.auth.marketingcloudapis.com/v2/token). -
Enable for Callouts: Checked
-
External Credential: Select
ESL_External_Credential
-
-
In the Callout Options section:
-
Deselect
Generate Authorization Header -
Select
Allow Formulas in HTTP Header -
Select
Allow Formulas in HTTP Body
-
-
In the Managed package access section:
-
Set allowed namespaces for callouts to JourneyBuilders
-
-
Click Save.
This credential points to the Marketing Cloud Content Endpoint for data API calls.
-
Navigate back to the Named Credentials page.
-
Click New again.
-
Set the properties:
-
Label:
ESL MC CONTENT API -
Name:
ESL_MC_CONTENT_API -
URL: Enter your Marketing Cloud Content API URL (e.g.,
https://mc-xxxxxx.pub.sfmc-content.com/j1d2tc3napz). -
Enable for Callouts: Checked
-
External Credential: Select
ESL_External_Credential
-
-
In the Callout Options section:
-
Deselect
Generate Authorization Header -
Deselect
Allow Formulas in HTTP Header -
Deselect
Allow Formulas in HTTP Body
-
-
In the Managed package access section:
-
Set allowed namespaces for callouts to JourneyBuilders
-
-
Click Save.
Users need permission to utilize the security credentials created above.
-
In Salesforce Setup, search for and select Permission Sets.
-
Click New. Give it a descriptive name (e.g.,
External Credential Access). -
Click Save.
-
In the Apps section, click External Credential Principal Access.
-
Click Edit and move the
ESL_PRINCIPALfrom Available to Enabled on the right. Click Save. -
Click the arrow button next to External Credential Principal Access and click Object Settings.
-
Click on User External Credentials (userExternalCredential).
-
Click Edit and select Read.
-
Click Save.
End users require two distinct Permission Sets to function correctly: one for API access (to use the credentials) and one for general app feature access (to view the LWC, fields, etc.).
Standard User Access (Required)
In Salesforce Setup, navigate to Permission Sets:
- Select the Email Send Log Permission Set.
- Click Manage Assignments and assign it to the target users.
- Repeat these steps for the
External Credential AccessPermission Set.
Administrative Access (Optional)
If a user needs to configure the app (e.g., changing column names, titles, or visibility settings via the Settings tab), they require administrative rights:
- Repeat the assignment steps for the Email Send Log Admin Permission Set.
- Note: Only assign this to users who are responsible for the app’s configuration.
Once the Email Send Log Admin permission set is assigned, administrators can tailor the app to the organization’s needs via the dedicated settings interface.
-
Open the App: Navigate to the App Launcher (the “waffle” icon) and search for Email Send Log Settings.
-
General Settings: Update the Component Title (e.g., “Sent Emails”) to change how the header appears to end users.
-
Manage Fields & Order: * Use the arrows to move fields between Available and Visible. Reorder the Visible fields to prioritize the most important data.
-
Customize Labels: In the Customize Display Labels section, you can rename column headers (e.g., changing “Subject” to “Email Topic”) to match your internal terminology.
-
Save: Click Save Settings to apply the changes immediately to the Email Send Log component.
The final setup step is to place the JB Email Send Log component on any record page, where end users can access it. For example, by adding it to the Contact record page.
-
Navigate to a Contact Record: Open any existing Contact record in your Salesforce org.
-
Enter Edit Mode: Click the Setup gear icon (⚙️) in the top right corner and select Edit Page (this opens the Lightning App Builder).
-
Find the Component: In the left sidebar under Custom Components, search for and locate the component named: JB Email Send Log
-
Drag and Drop: Drag the
JB Email Send Logcomponent and drop it onto the desired location of the Contact record page (e.g., in a new tab, or into the main details area). -
Configure Component Properties (Important):
-
After placing the component, click on it to view its properties panel on the right side of the screen.
-
Automatically Load Data: Review the checkbox for the
loadOnRecordLoadproperty:-
Recommended: Leave it checked (default is
true). This ensures the email log data automatically loads when the user opens the Contact record. -
Alternative: Uncheck it if you want the user to click a button to load the data manually (for performance optimization).
-
-
[Optional] By default, the component uses the current Record ID to fetch logs. Use the Subscriber ID Field API Name setting if the subscriber is identified by a different field on the record.
-
Example (Person Accounts): Enter
PersonContactIdto pull logs for the underlying Contact while viewing an Account page. -
Example (Custom Identifier): Enter
External_ID__cif you track subscribers using a specific external key.
Note: Ensure you use the exact API Name of the field (case-sensitive).
-
-

-
-
Save and Activate:
-
Click the Save button in the top right corner of the Lightning App Builder.
-
If prompted to activate the page, ensure you assign it as the Org Default or assign it to the correct App/Profile combination.
-
-
Verify: Exit the App Builder and refresh the Contact record page. The JB Email Send Log should now be visible and loading data.
The installation is done, congratulations. Now you can proceed to test viewing emails from Marketing Cloud in Salesforce. Should you run into any trouble or have questions on the functionality, please refer to our frequently asked questions or contact us.
