データテーブルの探索

CRM システムの接続IDを使用すると、GET リクエストを実行してデータテーブルを調べることができます。 次の呼び出しを使用して、検査またはExperience Platformに取り込むテーブルのパスを見つけます。

API 形式

GET /connections/{BASE_CONNECTION_ID}/explore?objectType=root
パラメーター説明
{BASE_CONNECTION_ID}CRM システムのベース接続のID。

リクエスト

curl -X GET \
    'https://platform.adobe.io/data/foundation/flowservice/connections/{BASE_CONNECTION_ID}/explore?objectType=root' \
    -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}'

応答

レスポンスが成功した場合は、からCRM システムへのテーブルの配列です。 Experience Platformに取り込むテーブルを見つけ、そのpath プロパティをメモします。このプロパティは、次の手順で構造を検査するために必要です。

[
    {
        "type": "table",
        "name": "Solution Component Summary",
        "path": "msdyn_solutioncomponentsummary",
        "canPreview": true,
        "canFetchSchema": true
    },
    {
        "type": "table",
        "name": "Quote Invoicing Product",
        "path": "msdyn_quoteinvoicingproduct",
        "canPreview": true,
        "canFetchSchema": true
    },
    {
        "type": "table",
        "name": "Opportunity Relationship",
        "path": "customeropportunityrole",
        "canPreview": true,
        "canFetchSchema": true
    }
]

テーブルの構造を調べる

CRM システムからテーブルの構造を検査するには、クエリ パラメーターとしてテーブルのパスを指定しながらGET リクエストを実行します。

API 形式

GET /connections/{BASE_CONNECTION_ID}/explore?objectType=table&object={TABLE_PATH}
パラメーター説明
{BASE_CONNECTION_ID}CRM システムのベース接続のID。
{TABLE_PATH}テーブルのパス。

リクエスト

curl -X GET \
    'https://platform.adobe.io/data/foundation/flowservice/connections/{BASE_CONNECTION_ID}/explore?objectType=table&object={TABLE_PATH}' \
    -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}'

応答

応答が成功すると、テーブルの構造が返されます。 各テーブルの列に関する詳細は、columns配列の要素内にあります。

{
    "format": "flat",
    "schema": {
        "columns": [
            {
                "name": "first_name",
                "type": "string",
                "meta": {
                    "originalType": "String"
                }
            },
            {
                "name": "last_name",
                "type": "string",
                "meta": {
                    "originalType": "String"
                }
            },
            {
                "name": "email",
                "type": "string",
                "meta": {
                    "originalType": "String"
                }
            }
        ]
    }
}

次の手順

このチュートリアルに従うことで、CRM システムを探索し、Experience Platformに取り込むテーブルのパスを見つけ、その構造に関する情報を取得しました。 次のチュートリアルでこの情報を使用して、CRM システムからデータを収集し、Experience Platformに取り込むことができます。

自動翻訳
言語セレクターを使用して、このページの英語版を表示します。
翻訳は役に立ちましたか?

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.