Salesforce

Integration Overview

Salesforce Setup

To integrate with Salesforce from an external application, a consumer secret and consumer key are required. To obtain these, an application within the Salesforce instance is needed.

To create an application and get the Salesforce KEY and SECRET:

  1. Click Setup.
  2. Find Build section in left column and click Create in below to expand hidden menu.
  3. Find and click Apps in hidden menu (not in right column).
  4. Find Connected Apps section in bottom of right column and then click New.

Leave the ‘Web App Settings’, ‘Custom Connected App Handler’, ‘Mobile App Settings’ and ‘Canvas App Settings’ as default (blank).

Please note: It is possible to lock down the app to make sure we only have access to the areas we need.

In addition to that we will need the following:

  1. A user with the ‘Marketing User’ permissions set.
  2. The secret token for that user – let us know if you use IP whitelisting - if so, we will need to whitelist your instance Demand.Center.

Sync to Salesforce

Campaigns in the hierarchy are created as Salesforce Campaigns

Tactics and channels are synced to Salesforce when brief is sent to the installed Marketing Automation platform. On integration Demand.Center creates Salesforce campaigns for the following:

  1. Parent campaigns not already in Salesforce
  2. Current tactic
  3. Selected channels under the tactic (the owner field of the campaign in Salesforce will be set to the owner of the tactic in Demand.Center).

Campaign Hierarchy

  1. Campaign – High level strategic buckets – Yearly Themes​
  2. Program – Next level strategic buckets – Quarterly Themes – Created dynamically by Region / Quarter​
  3. Tactic – The offer that is being presented – Whitepaper, Event etc.​
  4. Channel – The primary communication method to direct contacts to the offer – Email, Social etc.

A channel is different to an asset. ​

A channel is made up of multiple asset types (emails, forms, landing pages etc.)​.

The channel type is based on the primary communication method​.

API Calls

  1. Currently the only call to Salesforce is a POST (/services/data/vXX.X/sobjects/Campaign) to create the campaign.
  2. If you would like to see more details on this call, please refer to the Salesforce documentation here.