使用Flow Service API建立Salesforce Service Cloud來源連線
基礎連線代表來源和Adobe Experience Platform之間的已驗證連線。
閱讀本教學課程,瞭解如何使用Flow Service API為Salesforce Service Cloud建立基礎連線。
快速入門
本指南需要您深入了解下列 Adobe Experience Platform 元件:
下列章節提供您需瞭解的其他資訊,才能使用Flow Service API成功連線到Salesforce Service Cloud。
收集必要的認證
閱讀驗證指南,以取得擷取認證的詳細資訊。
使用Experience Platform API
如需如何成功呼叫Experience Platform API的詳細資訊,請參閱Experience Platform API快速入門指南。
建立基礎連線
基本連線會保留來源與Experience Platform之間的資訊,包括來源的驗證認證、連線的目前狀態,以及唯一的基本連線ID。 基礎連線ID可讓您從來源內部探索及導覽檔案,並識別您要擷取的特定專案,包括其資料型別和格式的資訊。
若要建立基底連線ID,請在提供您的Salesforce Service Cloud驗證認證作為要求引數的一部分時,對/connections端點提出POST要求。
API格式
POST /connections
要求
以下要求使用OAuth 2使用者端認證為Salesforce Service Cloud建立基礎連線:
curl -X POST \
'https://platform.adobe.io/data/foundation/flowservice/connections' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Salesforce Service Cloud account for ACME data (OAuth2)",
"description": "Salesforce Service Cloud account for ACME data (OAuth2)",
"auth": {
"specName": "OAuth2 Client Credential",
"params":
"environmentUrl": "https://acme-enterprise-3126.my.salesforce.com",
"clientId": "xxxx",
"clientSecret": "xxxx",
"apiVersion": "60.0"
}
},
"connectionSpec": {
"id": "cb66ab34-8619-49cb-96d1-39b37ede86ea",
"version": "1.0"
}
}'
屬性
說明
auth.params.environmentUrlSalesforce Service Cloud執行個體的URL。
auth.params.clientId與您的Salesforce Service Cloud帳戶相關聯的使用者端ID。
auth.params.clientSecret與您的Salesforce Service Cloud帳戶相關聯的使用者端密碼。
auth.params.apiVersion您正在使用的Salesforce Service Cloud執行個體的REST API版本。
connectionSpec.idSalesforce Service Cloud連線規格識別碼:
cb66ab34-8619-49cb-96d1-39b37ede86ea。回應
成功的回應會傳回您新建立的基本連線及其唯一ID。
{
"id": "4267c2ab-2104-474f-a7c2-ab2104d74f86",
"etag": "\"0200f1c5-0000-0200-0000-5e4352bf0000\""
}
後續步驟
依照此教學課程,您已使用Flow Service API建立Salesforce Service Cloud基礎連線。 您可以在下列教學課程中使用此基本連線ID:
recommendation-more-help
experience-platform-help-sources