---
title: "เชื่อมต่อ Salesforce Marketing Cloud"
description: "สร้าง Installed Package ที่มีสิทธิ์เข้าถึง API ใน Marketing Cloud เชื่อมต่อ แล้วส่งผู้ลงทะเบียนใหม่เข้าไปเป็นรายชื่อติดต่อ"
url: https://scratcher.io/th/help/integrations/salesforce-marketing-cloud
language: th
---

1. [ศูนย์ช่วยเหลือ](https://scratcher.io/th/help)
2. [การเชื่อมต่อ](https://scratcher.io/th/help/integrations)
3. เชื่อมต่อ Salesforce Marketing Cloud

# เชื่อมต่อ Salesforce Marketing Cloud

สร้าง Installed Package ที่มีสิทธิ์เข้าถึง API ใน Marketing Cloud เชื่อมต่อ แล้วส่งผู้ลงทะเบียนใหม่เข้าไปเป็นรายชื่อติดต่อ

เมื่อใช้การเชื่อมต่อกับ Salesforce Marketing Cloud ผู้ลงทะเบียนทุกคนจะถูกสร้างหรืออัปเดตเป็นผู้ติดต่อใน Marketing Cloud โดยใช้ที่อยู่อีเมลเป็นคีย์ของผู้ติดต่อ โดยทั่วไปคุณจะต้องให้ผู้ดูแลระบบ Salesforce ช่วยตั้งค่า

## สิ่งที่ต้องมี

- บัญชี Salesforce Marketing Cloud และผู้ใช้ที่เข้าถึง **Setup** > **Installed Packages** ได้ (โดยปกติคือผู้ดูแลระบบ Marketing Cloud)
- แพ็กเกจ Scratcher ที่รวมการเชื่อมต่อในตัวทั้งหมด หากปุ่มถูกล็อก ดู [การทดลองใช้ แพ็กเกจ และสิ่งที่เกิดขึ้นเมื่อสิ้นสุดการทดลองใช้](https://scratcher.io/th/help/billing/trial-and-plans)

## ขั้นตอนที่ 1: สร้างข้อมูลรับรอง API ใน Marketing Cloud

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. ค้นหา external key ของ data extension ที่ทีมของคุณใช้เก็บลีดจาก Scratcher ใน **Contact Builder** หรือ **Email Studio** ให้เปิด data extension แล้วคัดลอก **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**: external key จากขั้นตอนที่ 1
3. คลิก **ติดตั้งการเชื่อมต่อ** Scratcher จะเข้าสู่ระบบ Marketing Cloud เพื่อตรวจสอบข้อมูล

URL ทั้งสองต้องเป็นที่อยู่ API ของ Marketing Cloud (ลงท้ายด้วย 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.” ขณะติดตั้ง: ตรวจสอบ URL ทั้งสอง, client ID และ secret รวมถึงว่าแพ็กเกจมีสิทธิ์ตามข้างต้นครบหรือไม่
- การส่งข้อมูลล้มเหลวพร้อมข้อความว่าไม่รู้จักแอตทริบิวต์: **ชื่อฟิลด์ภายนอก** ไม่ตรงกับแอตทริบิวต์ใน **Custom Data** ให้แก้ชื่อหรือเพิ่มแอตทริบิวต์
- “The Salesforce Marketing Cloud urls must be marketingcloudapis.com addresses.”: ติดตั้งการเชื่อมต่อใหม่โดยใช้ URL ที่ถูกต้อง

ต้องการเชื่อมต่อกับ Salesforce ในระดับลึกกว่านี้ เช่น Sales Cloud? ในแพ็กเกจ Enterprise เราสร้างให้ร่วมกับคุณได้ [จองนัดหมาย](https://scratcher.io/th/book-a-meeting)

การเชื่อมต่อ

- [การเชื่อมต่อทำงานอย่างไร](https://scratcher.io/th/help/integrations/how-integrations-work)
- [การเชื่อมต่อทั้งหมด](https://scratcher.io/th/help/integrations/other-integrations)
- [ตรวจสอบสถานะการส่งและส่งลีดอีกครั้ง](https://scratcher.io/th/help/integrations/delivery-status)
- [เชื่อมต่อ HubSpot](https://scratcher.io/th/help/integrations/hubspot)
- [เชื่อมต่อ Salesforce Marketing Cloud](https://scratcher.io/th/help/integrations/salesforce-marketing-cloud)
- [เชื่อมต่อ Microsoft Dynamics 365 ผ่าน Zapier](https://scratcher.io/th/help/integrations/microsoft-dynamics-365)
- [เชื่อมต่อ Emarsys](https://scratcher.io/th/help/integrations/emarsys)
- [เชื่อมต่อ Klaviyo](https://scratcher.io/th/help/integrations/klaviyo)
- [เชื่อมต่อ Mailchimp](https://scratcher.io/th/help/integrations/mailchimp)
- [เชื่อมต่อ ActiveCampaign](https://scratcher.io/th/help/integrations/activecampaign)
- [เชื่อมต่อ Apsis One](https://scratcher.io/th/help/integrations/apsis-one)
- [เชื่อมต่อ Drip](https://scratcher.io/th/help/integrations/drip)
- [เชื่อมต่อ HeyLoyalty](https://scratcher.io/th/help/integrations/heyloyalty)
- [เชื่อมต่อ Peytz](https://scratcher.io/th/help/integrations/peytz)
- [เชื่อมต่อ Marketingplatform](https://scratcher.io/th/help/integrations/marketingplatform)
- [เชื่อมต่อ Campaign Monitor กับ Zapier](https://scratcher.io/th/help/integrations/campaign-monitor)
- [เชื่อมต่อ ActiveTrail ผ่าน Zapier](https://scratcher.io/th/help/integrations/activetrail)
- [เชื่อมต่อ Bloomreach](https://scratcher.io/th/help/integrations/bloomreach)
- [เชื่อมต่อ Iterable](https://scratcher.io/th/help/integrations/iterable)
- [เชื่อมต่อ Mapp](https://scratcher.io/th/help/integrations/mapp)
- [เชื่อมต่อ Agillic](https://scratcher.io/th/help/integrations/agillic)
- [เชื่อมต่อ Ortto](https://scratcher.io/th/help/integrations/ortto)
- [เชื่อมต่อ Emarketeer](https://scratcher.io/th/help/integrations/emarketeer)
- [เชื่อมต่อ Shopify](https://scratcher.io/th/help/integrations/shopify)
- [เชื่อมต่อ Hello Retail](https://scratcher.io/th/help/integrations/hello-retail)
- [เชื่อมต่อแอปกว่า 8,000 แอปด้วย Zapier](https://scratcher.io/th/help/integrations/zapier)
- [เชื่อมต่อ monday.com กับ Zapier](https://scratcher.io/th/help/integrations/monday-com)
- [เชื่อมต่อ Asana กับ Zapier](https://scratcher.io/th/help/integrations/asana)
- [เชื่อมต่อ Podio ผ่าน Zapier](https://scratcher.io/th/help/integrations/podio)
- [เชื่อมต่อ Intercom กับ Zapier](https://scratcher.io/th/help/integrations/intercom)

เรียนรู้เพิ่มเติม

## บทความที่เกี่ยวข้อง

- [การเชื่อมต่อทำงานอย่างไร](https://scratcher.io/th/help/integrations/how-integrations-work): เชื่อมต่อเครื่องมืออีเมลหรือ CRM เพียงครั้งเดียว เปิดใช้งานในแต่ละแคมเปญ เลือกรายชื่อ จับคู่ช่องข้อมูล และส่งเฉพาะคนที่ให้ความยินยอม
- [ตรวจสอบสถานะการส่งและส่งลีดอีกครั้ง](https://scratcher.io/th/help/integrations/delivery-status): ดูว่าลีดใดถูกส่งไปยังเครื่องมือของคุณแล้ว ทำความเข้าใจข้อความแสดงข้อผิดพลาด แก้ไขปัญหา แล้วส่งอีกครั้ง
- [เชื่อมต่อ HubSpot](https://scratcher.io/th/help/integrations/hubspot): เข้าสู่ระบบ HubSpot จาก Scratcher และสร้างหรืออัปเดตผู้ติดต่อด้วยพร็อพเพอร์ตี้ที่คุณเลือก ทีละขั้นตอน

ต้องการความช่วยเหลือ?

## ยังต้องการความช่วยเหลือ?

ทีมงานตัวจริงพร้อมช่วยเหลือคุณ หากคุณใช้ Scratcher อยู่แล้ว วิธีที่เร็วที่สุดคือแชทในแพลตฟอร์ม

- **[แชทกับเรา](https://platform.scratcher.io/th/login)**

    เข้าสู่ระบบแล้วคลิกปุ่มแชทที่มุมขวาล่าง Rex จะตอบทันที และทีมงานของเราก็พร้อมช่วยเพียงคลิกเดียว
- **[จองนัดหมาย](https://scratcher.io/th/book-a-meeting)**

    วิดีโอคอลฟรี 30 นาทีกับทีมงานของเรา เพื่อพาชมแพลตฟอร์ม แบ่งปันไอเดียแคมเปญ หรือช่วยเรื่องการตั้งค่า
- **[ส่งอีเมลถึงเรา](mailto:contact@scratcher.io)**

    เขียนถึงเราที่ contact@scratcher.io แล้วเราจะติดต่อกลับ
