Salesforce Marketing Cloud (Exact Target) Integration
  • 04 Jan 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Salesforce Marketing Cloud (Exact Target) Integration

  • Dark
    Light
  • PDF

Article summary

This page documents the integration between Xponent and Salesforce Marketing Cloud (Exact Target) Integration. The integration uses the REST Web Service Adaptor and the Salesforce Marketing Cloud REST API.   

https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/messageDefinitionSends.htm

Token Request Endpoint:

https://auth.exacttargetapis.com/v1/requestToken

Token Request Body:

{
	"clientId":app_param.client_id,
	"clientSecret":app_param.client_secret
}

Send email template endpoint:

https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:%%template_name%%/send

Example body for request:

{
  "From": {
    "Address": from_address,
    "Name": email_template.name
  },
  "To": {
    "Address": user_info.email_address,
    "SubscriberKey": user_info.uuid,
    "ContactAttributes": {
      "SubscriberAttributes": {
        "ExampleAttribute": attributeGoesHere
      }
    }
  },
  "Options": {
    "RequestType": ""
  }
}

Token Request Endpoint:

https://*********-****.auth.marketingcloudapis.com/v2/token

Token Request Body:

{
	"grant_type": "client_credentials",
	"client_id":"****************",
	"client_secret":"****************",
	"account_id":"1234567890"
}

Response Body:

{
	"soap_instance_url": "https://****************-****.soap.marketingcloudapis.com/",
	"access_token": "********",
	"expires_in": 1079,
	"token_type": "Bearer",
	"rest_instance_url": "https://****************-****.rest.marketingcloudapis.com/",
	"scope": "offline automations_execute automations_read automations_write journeys_execute journeys_read journeys_write email_read email_send email_write data_extensions_read data_extensions_write webhooks_read webhooks_write"
}

Is it helpful? React and share your comment

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence