You are here:
Set up Marketing Cloud Engagement for the Safety Cloud Package
If you plan to use Marketing Cloud Engagement to send initial confirmation and status update emails, create an installed package in Engagement and set up the Marketing Cloud Engagement API.
With the Health Verification package, you can send initial confirmation and status update emails only.
First, create an installed package in Engagement.
- Go to Engagement Setup and click Apps.
- Click Installed Packages.
- Click New.
- Name your application, and select Create with enhanced functionality (recommended).
- Click Save.
- Click Add Component.
- Turn on API Integration.
- Copy the client ID, client secret, and the subdomain of Authentication Base URI. You use these values in your Salesforce org, so keep them somewhere safe.
- Select Integration Type: Web App.
- Add a temporary Redirect URI. You update this field with your Auth Provider Callback URI later.
- Select Offline Access.
- Enable Email Read, Write, and Send permissions.
- Save the permissions you set.
- Click Access.
- Click License All Users.
- Click License All.
Next, add Marketing Cloud Engagement API as a Salesforce authentication provider in your
Salesforce org. Make sure that the vaccine eligibility packages are installed correctly before
proceeding. The packages install Marketing_Cloud_API.authprovider and Marketing_Cloud_API.namedCredential into the org with placeholder values.
- From Salesforce Setup, go to .
-
Paste the values from your Marketing Cloud Engagement API Integration:
- Consumer Key: enter the Client Id.
- Client Secret: enter the Client Secret.
- Authorize Endpoint URL: use a URL with the same subdomain as the Authentication Base URI.
- Token Endpoint URL: use a URL with the same subdomain as the Authentication Base URI.
- For security, if you want to exclude consumer secrets from displaying in API responses, deselect Include Customer Secret in API Responses.
- Click Save.
- Copy the Callback URI at the bottom of the Auth Provider.
Add the Callback URI to your Engagement package and authenticate.
- From Engagement Setup, open your Engagement package page and click Edit.
- In Redirect URI, paste the Callback URI.
- Click Save.
- Copy the REST Base URI.
- From Salesforce Setup, in the Quick Find box, enter Named Credentials, and click Named Credentials.
- Create or edit a named credential.
- In URL, paste the REST Base URI (or a URL with the same subdomain).
- Select Start Authentication Flow on Save if it isn’t already.
- Click Save. The Engagement login page opens.
- Log in with your username and password.
- Verify that the named credential Authentication Status is Authenticated.
For full information about the settings, see Create and Install Packages.
- Set up Marketing Cloud Engagement to Send Customer Health Verification Notifications
Prepare and send COVID-19 health verification notifications such as confirmation and status updates to your customers. Send notifications using Content Builder and Journey Builder in Marketing Cloud Engagement. - Define the Send Definitions Configured in Marketing Cloud Engagement
Use Occasion objects to define the send definitions for email notifications configured in Marketing Cloud Engagement. When the criteria you define in the send definitions are met, Engagement sends email notifications to users. The context of the email that Engagement sends depends on the criteria specified in the send definition, as defined by the Occasion objects. - Set up an Email Template for Health Verification
You can use Occasion Email Mapping to set up an email template for Health Verification. The template determines the content of the Health Verification email. - Schedule the Confirmation and Verification Emails
With the Developer Console, you can schedule theSendConfirmationEmailsand theSendVerificationEmailsApex class

