---
title: "連接 Salesforce Marketing Cloud"
description: "在 Marketing Cloud 中建立具有 API 存取權限的已安裝套件，完成連接，並將新註冊資料以聯絡人的形式傳送過去。"
url: https://scratcher.io/zh-tw/help/integrations/salesforce-marketing-cloud
language: zh-TW
---

1. [說明中心](https://scratcher.io/zh-tw/help)
2. [整合](https://scratcher.io/zh-tw/help/integrations)
3. 連接 Salesforce Marketing Cloud

# 連接 Salesforce Marketing Cloud

在 Marketing Cloud 中建立具有 API 存取權限的已安裝套件，完成連接，並將新註冊資料以聯絡人的形式傳送過去。

透過 Salesforce Marketing Cloud 整合，每一位完成註冊的人都會在 Marketing Cloud 中建立為聯絡人，或更新既有的聯絡人資料，並以電子郵件地址作為聯絡人金鑰（contact key）。設定時通常需要請您的 Salesforce 管理員協助。

## 您需要準備

- 一個 Salesforce Marketing Cloud 帳號，以及一位可存取 **Setup** > **Installed Packages** 的使用者（通常是 Marketing Cloud 管理員）。
- 包含所有原生整合的 Scratcher 方案。如果按鈕被鎖定，請參閱[您的試用、方案，以及試用結束後會發生什麼事](https://scratcher.io/zh-tw/help/billing/trial-and-plans)。

## 步驟 1：在 Marketing Cloud 建立 API 憑證

1. 在 Marketing Cloud 中，開啟 **Setup**（位於您姓名下方的選單）。
2. 前往 **Apps** > **Installed Packages**，點擊 **New**。為套件取一個名稱，例如「Scratcher」，然後儲存。
3. 點擊 **Add Component**，選擇 **API Integration**，再選擇 **Server-to-Server**。
4. 設定下方列出的權限，然後儲存。
5. 開啟該元件，複製 **Client Id**、**Client Secret**、**Authentication Base URI** 和 **REST Base URI**。
6. 確認該套件可存取您要存放聯絡人的 Business Unit（在套件的 **Access** 下設定）。
7. 找出您的團隊用來存放 Scratcher 潛在客戶的資料擴充（data extension）的外部金鑰。在 **Contact Builder** 或 **Email Studio** 中開啟該資料擴充，複製其 **External Key**。

## 套件所需的權限

Scratcher 會向 Marketing Cloud 要求以下這些權限範圍（scope），因此元件必須允許它們：

- **Contacts** > **List and Subscribers**：**Read** 和 **Write**。用於以電子郵件地址尋找聯絡人，並建立或更新聯絡人。
- **Data** > **Data Extensions**：**Write**。

不需要其他權限。

## 步驟 2：連接到 Scratcher

1. 在 Scratcher 中，前往 **設定** > **整合**，點擊 **Salesforce Marketing Cloud**。
2. 填寫欄位：
    - **Auth Base URL**：即 Authentication Base URI，例如 `https://xxxx.auth.marketingcloudapis.com`。
    - **Rest Base URL**：即 REST Base URI，例如 `https://xxxx.rest.marketingcloudapis.com`。
    - **Client ID** 和 **Client Secret**。
    - **Data extension id**：步驟 1 取得的外部金鑰。
3. 點擊 **安裝整合**。Scratcher 會登入 Marketing Cloud 以驗證這些資訊。

兩個網址都必須是 Marketing Cloud 的 API 位址（以 marketingcloudapis.com 結尾），其他位址會被拒絕。

## 步驟 3：在活動中啟用

1. 在編輯器中，前往 **連接** > **整合** > **Salesforce Marketing Cloud**，點擊 **啟用**。
2. 如果您連接了多個帳號，請在 **選擇帳號** 下選擇要使用的帳號。
3. 在 **欄位對應** 下，點擊 **新增欄位對應**，選擇 Scratcher 的欄位，並在 **外部欄位名稱** 中輸入 Marketing Cloud 中該屬性的名稱。
4. 在 **依權限篩選（選填）** 下，如有需要，請選擇您的同意勾選框。
5. 點擊 **儲存**，然後點擊 **測試**。

> 溫馨提醒：由於沒有可選擇的名單，Scratcher 在您點擊 **啟用** 後就會立即開始傳送資料。請在活動上線前啟用，或馬上設定好欄位對應。

## 傳送的內容

- 電子郵件地址會作為聯絡人金鑰，儲存在 **Email Addresses** 屬性集中，並開啟 HTML 電子郵件。
- 表單中的名字和姓氏會儲存在 **Email Demographics** 中。
- 您對應的欄位會以您輸入的名稱，儲存在名為 **Custom Data** 的屬性集中。請請您的管理員在 Contact Builder 中建立該屬性集，並使用相符的屬性名稱。

新的註冊資料會在一兩分鐘內傳送，而活動中既有的潛在客戶會在您啟用時一併傳送。

## 疑難排解

- 安裝時出現「All or some of the fields are invalid. The integration failed to validate the fields.」：請檢查兩個網址、Client ID 和 Client Secret，並確認套件具備上述權限。
- 傳送失敗並顯示未知屬性：某個 **外部欄位名稱** 與 **Custom Data** 中的屬性不符。請修正名稱，或新增該屬性。
- 「The Salesforce Marketing Cloud urls must be marketingcloudapis.com addresses.」：請使用正確的網址重新安裝整合。

需要與 Salesforce 進行更深入的串接，例如 Sales Cloud？在 Enterprise 方案中，我們可以與您一起打造。[預約會議](https://scratcher.io/zh-tw/book-a-meeting)。

整合

- [整合運作方式](https://scratcher.io/zh-tw/help/integrations/how-integrations-work)
- [所有整合](https://scratcher.io/zh-tw/help/integrations/other-integrations)
- [查看遞送狀態並重新傳送潛在客戶](https://scratcher.io/zh-tw/help/integrations/delivery-status)
- [串接 HubSpot](https://scratcher.io/zh-tw/help/integrations/hubspot)
- [連接 Salesforce Marketing Cloud](https://scratcher.io/zh-tw/help/integrations/salesforce-marketing-cloud)
- [透過 Zapier 串接 Microsoft Dynamics 365](https://scratcher.io/zh-tw/help/integrations/microsoft-dynamics-365)
- [串接 Emarsys](https://scratcher.io/zh-tw/help/integrations/emarsys)
- [串接 Klaviyo](https://scratcher.io/zh-tw/help/integrations/klaviyo)
- [連接 Mailchimp](https://scratcher.io/zh-tw/help/integrations/mailchimp)
- [連接 ActiveCampaign](https://scratcher.io/zh-tw/help/integrations/activecampaign)
- [串接 Apsis One](https://scratcher.io/zh-tw/help/integrations/apsis-one)
- [串接 Drip](https://scratcher.io/zh-tw/help/integrations/drip)
- [串接 HeyLoyalty](https://scratcher.io/zh-tw/help/integrations/heyloyalty)
- [串接 Peytz](https://scratcher.io/zh-tw/help/integrations/peytz)
- [連結 Marketingplatform](https://scratcher.io/zh-tw/help/integrations/marketingplatform)
- [用 Zapier 串接 Campaign Monitor](https://scratcher.io/zh-tw/help/integrations/campaign-monitor)
- [透過 Zapier 串接 ActiveTrail](https://scratcher.io/zh-tw/help/integrations/activetrail)
- [串接 Bloomreach](https://scratcher.io/zh-tw/help/integrations/bloomreach)
- [串接 Iterable](https://scratcher.io/zh-tw/help/integrations/iterable)
- [串接 Mapp](https://scratcher.io/zh-tw/help/integrations/mapp)
- [串接 Agillic](https://scratcher.io/zh-tw/help/integrations/agillic)
- [串接 Ortto](https://scratcher.io/zh-tw/help/integrations/ortto)
- [串接 Emarketeer](https://scratcher.io/zh-tw/help/integrations/emarketeer)
- [連接 Shopify](https://scratcher.io/zh-tw/help/integrations/shopify)
- [串接 Hello Retail](https://scratcher.io/zh-tw/help/integrations/hello-retail)
- [用 Zapier 串接 8,000+ 款應用程式](https://scratcher.io/zh-tw/help/integrations/zapier)
- [將 monday.com 與 Zapier 串接](https://scratcher.io/zh-tw/help/integrations/monday-com)
- [用 Zapier 串接 Asana](https://scratcher.io/zh-tw/help/integrations/asana)
- [用 Zapier 串接 Podio](https://scratcher.io/zh-tw/help/integrations/podio)
- [透過 Zapier 串接 Intercom](https://scratcher.io/zh-tw/help/integrations/intercom)

繼續學習

## 相關文章

- [整合運作方式](https://scratcher.io/zh-tw/help/integrations/how-integrations-work): 只需連結一次電子郵件工具或 CRM，接著在每個活動中啟用、選擇名單、對應欄位，並且只傳送已取得同意的人員。
- [查看遞送狀態並重新傳送潛在客戶](https://scratcher.io/zh-tw/help/integrations/delivery-status): 查看哪些潛在客戶已傳送到您的工具、了解錯誤訊息、修正問題後再次傳送。
- [串接 HubSpot](https://scratcher.io/zh-tw/help/integrations/hubspot): 登入 HubSpot，從 Scratcher 逐步依您選擇的屬性建立或更新聯絡人。

需要協助嗎？

## 還需要協助嗎？

真人團隊隨時為您提供協助。如果您已經在使用 Scratcher，最快的方式是使用平台內的線上聊天。

- **[線上聊天](https://platform.scratcher.io/zh-TW/login)**

    登入後點擊右下角的聊天按鈕。Rex 會立即回覆，我們的團隊也只要點一下就能聯絡到。
- **[預約會議](https://scratcher.io/zh-tw/book-a-meeting)**

    與我們的團隊進行免費 30 分鐘視訊通話：產品導覽、活動點子或設定協助。
- **[寄信給我們](mailto:contact@scratcher.io)**

    寄信至 contact@scratcher.io，我們會盡快回覆您。
