傳送事件至的其他步驟 Journey Orchestration concept_xrz_n1q_y2b

NOTE
建立事件時, Journey Orchestration 自動產生此事件的ID。 推播事件的系統不應產生ID,而應使用裝載預覽中可用的ID。 請參閱此頁面

若要設定要傳送至的事件 Streaming Ingestion APIs 並用於 Journey Orchestration,您必須遵循下列步驟:

  1. 從Adobe Experience Platform API取得入口URL (請參閱 串流擷取API)。
  2. 從中的裝載預覽複製裝載 Event 功能表。 請參閱此頁面

然後,您需要設定資料系統,使用您複製的裝載將事件推送至串流獲取API:

  1. 設定對串流獲取API URL的POSTAPI呼叫(稱為入口)。
  2. 使用您從中複製的裝載 Journey Orchestration 串流獲取API之API呼叫的內文(「資料區段」)中。 如需範例,請參閱下文
  3. 決定從何處取得裝載中出現的所有變數。 範例:如果事件應該要傳達位址,貼上的裝載將會顯示「address」:「string」。 「string」應該取代為會自動填入正確值的變數,也就是傳送訊息對象的電子郵件。 請注意,在裝載預覽中,在 Header 章節,我們會自動填寫許多值,希望有助於您的工作。
  4. 選取「application/json」作為內文型別。
  5. 使用索引鍵「x-gw-ims-org-id」在標題中傳遞您的IMS組織ID。 此值請使用您的IMS組織ID (「XXX@AdobeOrg」)。

以下是串流擷取API事件的範例:

{
    "header": {
        "msgType": "xdmEntityCreate",
        "msgId": "c25585b9-252e-431d-b562-e73da70c04e7",
        "msgVersion": "1.0",
        "xactionId": "f5995abe-c49d-4848-9577-a7a4fc2996fb",
        "datasetId": "string - required if you want the data to land in a specific dataset - not mandatory",
        "imsOrgId": "XXX@AdobeOrg",
        "schemaRef": {
            "id": "XXX",
            "contentType": "application/vnd.adobe.xed-full+json;version=1"
        },
        "source": {
            "name": "Journeys"
        }
    },
    "body": {
        "xdmMeta": {
            "schemaRef": {
                "id": "XXX",
                "contentType": "application/vnd.adobe.xed-full+json;version=1"
            }
        },
        "xdmEntity": {
            "_instance_name": {
                "person": {
                    "firstName": "string",
                    "lastName": "string",
                    "gender": "string",
                    "birthYear": 10,
                    "emailAddress": "string"
                }
            },
            "identityMap": {
                "Email": [
                {
                    "id": "string"
                    }
                ]
            },
            "_id": "string",
            "timestamp": "2018-05-29T00:00:00.000Z",
            "_experience": {
                "campaign": {
                    "orchestration": {
                    "eventID": "XXX"
                    }
                }
            }
        }
    }
}

為方便您識別「資料」部分的貼上位置,您可以使用JSON視覺化工具,例如 https://jsonformatter.curiousconcept.com

若要疑難排解串流獲取API,請參閱此 頁面.

recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9