{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Zendesk Import Integration","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"zendesk-import-integration","__idx":0},"children":["Zendesk Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataでは、組織のZendeskアカウントから直接データをインポートできます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Dataの基本的な知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Zendeskアカウント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Chatデータを取得するためのZendesk Zopimアカウント"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data-integration-の静的-ip-アドレス","__idx":2},"children":["Treasure Data Integration の静的 IP アドレス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["セキュリティポリシーで IP ホワイトリストが必要な場合は、接続を成功させるために Treasure Data の IP アドレスを許可リストに追加する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リージョンごとに整理された静的 IP アドレスの完全なリストは、次のリンクにあります:"," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/ip-addresses-integrations-result-workers"},"children":["IP Addresses for Integrations"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソール経由でzendeskからインポート","__idx":3},"children":["Treasure コンソール経由でZendeskからインポート"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい認証の作成","__idx":4},"children":["新しい認証の作成"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソールを開きます。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Integrations Hub > Catalogに移動します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Zendeskを検索して選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190922-195712.51c26fb4ae060d3efff9c32b00cf5c83086b034129b47665e5c072bb866ae309.cbc89e54.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]},"をクリックします。認証された接続を作成します。次のダイアログが開きます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190922-195749.670b71a2bdce1b3fa92100068236fc73ec79be19678999bf82825c9c9c379530.cbc89e54.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Auth method"]},"には3つのオプションがあります：basic、token、oauth。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Chatデータをインポートするには、ZendeskのLogin Urlに次のURLを入力します：",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.zopim.com"},"children":["https://www.zopim.com"]},"。ChatではToken認証はサポートされていません。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["すべての必須フィールドを入力し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"をクリックします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいZendesk接続に名前を付けます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"をクリックします。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200324-214851.a12b6b30b82a7ba8cbba0ca8d519d664d0225c26677a9c6734da9b9595885c79.cbc89e54.png","alt":""},"children":[]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-dataへデータを転送","__idx":5},"children":["Treasure Dataへデータを転送"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証された接続を作成すると、自動的にAuthenticationsタブに移動します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["作成した接続を検索し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]},"をクリックします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["適切なフィールドを編集します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2023-08-15-at-10.52.05.cf0edd7a535afbbf112e43fd8f3edae3f81f65aba3708c38d25226065e148fc7.cbc89e54.png","alt":""},"children":[]}]}]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Zendeskから転送するオブジェクトの種類を指定します：tickets、ticket_fields、ticket_forms、ticket_events、ticket_metrics、users、organizations、scores、recipients、object_records、relationship_records、user_events、chat   - object_recordsとrelationship_recordsはZendeskカスタムオブジェクトに関する情報を提供します - scoresとrecipientsはZendesk NPSに関する情報を提供します - Chatの制限事項：    - 管理者または所有者のみがChatデータを取得する権限を持ちます。   - 「Include Subresources」および「De-duplicate records」オプションはサポートされていません"},"children":["Zendeskから転送するオブジェクトの種類を指定します：tickets、ticket_fields、ticket_forms、ticket_events、ticket_metrics、users、organizations、scores、recipients、object_records、relationship_records、user_events、chat   - object_recordsとrelationship_recordsはZendeskカスタムオブジェクトに関する情報を提供します - scoresとrecipientsはZendesk NPSに関する情報を提供します - Chatの制限事項：    - 管理者または所有者のみがChatデータを取得する権限を持ちます。   - 「Include Subresources」および「De-duplicate records」オプションはサポートされていません"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コネクタがインクリメンタルモードで実行できるようにし、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start time"]},"と",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End time"]},"を使用できるようにします。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start time"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["'start_time'以降に更新されたオブジェクトのみを選択できるようにします   - ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start time"]},"が指定されていない場合、すべてのオブジェクトが最初から取得されます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End time"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["'end_time'まで更新されたオブジェクトのみを選択できるようにします。   - ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End time"]},"が指定されていない場合、現在までのすべてのオブジェクトが取得されます。 - ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start time"]},"と",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End time"]},"を組み合わせて、'start_time'から'end_time'までの特定の期間内に更新されたオブジェクトのみを選択できます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enable cursor-based API"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["cursor APIフローを使用して100,000件を超えるレコードを取得できるようにします。   - ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ticketsとusers source"]},"のみに適用されます - ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start time"]},"のみを使用した",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["incremental"]},"をサポートします"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ソースプレビュー","__idx":6},"children":["ソースプレビュー"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データをプレビューします。変更を加えるには、Advanced Settingsをクリックします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190922-200213.1679d6dbb1d72eef40fd38ea8f3c9ba7ae1f1578c5b30424ed88072b799bb3d0.cbc89e54.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Nextを選択します。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"詳細設定","__idx":7},"children":["詳細設定"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Advanced Settingsを選択すると、次のダイアログが開きます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190922-200311.3f20706cccaa48c405e79f84c7ca685dfe3737496efa746cc9049d5c89c0ecd2.cbc89e54.png","alt":""},"children":[]},{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190922-200338.25048547ccc49a8e0c73026d82440a3bbe3a6f5c06a6b040b435983dea1c6e60.cbc89e54.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["パラメータを編集します。Save and Nextを選択します。"]}]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Parameter"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Include Subresources"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["メインオブジェクトと共にサブリソースを取得できるようにします。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add"]},"をクリックして名前でサブリソースを追加し、対応するカラムも",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add"]},"します。サブリソースはJSONオブジェクトとして扱われ、同じ名前のカラムに表示されます。   - Zendeskでは、このエンドポイントがサポートされています：",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.zendesk.com/rest_api/docs/support/users#list-users"},"children":["GET /api/v2/users/{user_id}/organizations.json"]}," つまり、organizationsをusersのサブリソースと見なすことができます。ユーザーが所属するorganizationsのすべての情報を取得できます。 - これを設定するには、'organizations'をサブリソースとして追加し、同じ名前のカラムをもう1つ追加する必要があります。データ型はJSONである必要があります。 - Include SubresourcesはChatではサポートされていません。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["De-duplicated Records"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Zendesk APIは重複を防止しないため、インクリメンタルモードで実行する際に重複レコードを回避できるようにします。   - 重複排除はChatではサポートされていません。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Retry Limit"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エラーが発生したときにジョブが再試行する回数を示します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Initial retry interval seconds"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["再試行前の最初の待機時間を示します。秒単位で測定されます。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-placement","__idx":8},"children":["Data Placement"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データの配置について、データを配置したいターゲット database と table を選択し、インポートを実行する頻度を指定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Storage の下で、インポートされたデータを配置する新しい database を作成するか、既存の database を選択し、新しい table を作成するか、既存の table を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Database"]}," を選択 > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select an existing"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Database"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、database 名を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Table"]}," を選択 > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select an existing"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Table"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、table 名を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データをインポートする方法を選択します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Append"]}," (デフォルト) - データインポートの結果は table に追加されます。"," ","table が存在しない場合は作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Always Replace"]}," - 既存の table の全体の内容をクエリの結果出力で置き換えます。table が存在しない場合は、新しい table が作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replace on New Data"]}," - 新しいデータがある場合のみ、既存の table の全体の内容をクエリの結果出力で置き換えます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timestamp-based Partition Key"]}," 列を選択します。"," ","デフォルトキーとは異なるパーティションキーシードを設定したい場合は、long または timestamp 列をパーティショニング時刻として指定できます。デフォルトの時刻列として、add_time フィルターで upload_time を使用します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データストレージの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timezone"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," の下で、このクエリを実行するタイミングと頻度を選択できます。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"一度だけ実行","__idx":9},"children":["一度だけ実行"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Off"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"定期的に繰り返す","__idx":10},"children":["定期的に繰り返す"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["On"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を選択します。UI では、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@monthly"]},"、またはカスタム ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cron"]}," の 4 つのオプションが提供されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Delay Transfer"]}," を選択して、実行時間の遅延を追加することもできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["転送が実行された後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases"]}," で転送の結果を確認できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"workflow経由でzendeskからインポート","__idx":11},"children":["Workflow経由でZendeskからインポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Zendeskからデータをインポートするサンプルワークフローについては、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/treasure-boxes/tree/master/td_load/zendesk"},"children":["Treasure Boxes"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cli経由でzendeskからインポート","__idx":12},"children":["CLI経由でZendeskからインポート"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"tdコマンドのインストール","__idx":13},"children":["'td'コマンドのインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最新の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/quickstart"},"children":["TD Toolbelt"]},"をインストールします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"seed設定ファイルseedymlの作成","__idx":14},"children":["Seed設定ファイル（seed.yml）の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の例に示すように、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["login_url"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["username"]},"（メールアドレス）、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["token"]},"、および",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["target"]},"を使用して",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["seed.yml"]},"を準備します。この例では、\"append\"モードを使用します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: zendesk\n  login_url: https://YOUR_DOMAIN_NAME.zendesk.com\n  auth_method: token\n  username: YOUR_EMAIL_ADDRESS\n  token: YOUR_API_TOKEN\n  target: tickets\n  start_time: \"2007-01-01 00:00:00+0000\"\n  enable_cursor_based_api: true\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["token"]},"は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Admin Home"]}," –> ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CHANNELS"]}," –> ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["API"]}," –> ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"add new token\""]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://YOUR_DOMAIN_NAME.zendesk.com/agent/admin/api"]},"）から作成できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["target"]},"は、Zendeskからダンプするオブジェクトのタイプを指定します。tickets、ticket_events、ticket_forms、ticket_fields、users、organizations、scores、recipients、object_records、relationship_records、user_eventsがサポートされています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["利用可能な",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["out"]},"モードの詳細については、付録を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"フィールドの推測loadymlの生成","__idx":15},"children":["フィールドの推測（load.ymlの生成）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["connector:guess"]},"を使用します。このコマンドは、ターゲットデータを自動的に読み取り、データフォーマットをインテリジェントに推測します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:guess seed.yml -o load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["load.yml"]},"ファイルを開くと、ファイルフォーマット、エンコーディング、カラム名、タイプなどを含む推測されたファイルフォーマット定義が表示されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: zendesk\n  login_url: https://YOUR_DOMAIN_NAME.zendesk.com\n  auth_method: token\n  username: YOUR_EMAIL_ADDRESS\n  token: YOUR_API_TOKEN\n  target: tickets\n  start_time: '2019-05-15T00:00:00+00:00'\n  columns:\n   - {name: url, type: string}\n   - {name: id, type: long}\n   - {name: external_id, type: string}\n   - {name: via, type: json}\n   - {name: created_at, type: timestamp, format: \"%Y-%m-%dT%H:%M:%S%z\"}\n   - {name: updated_at, type: timestamp, format: \"%Y-%m-%dT%H:%M:%S%z\"}\n   - {name: type, type: string}\n   - {name: subject, type: string}\n   - {name: raw_subject, type: string}\n   - {name: description, type: string}\n   - {name: priority, type: string}\n   - {name: status, type: string}\n   - {name: recipient, type: string}\n   - {name: requester_id, type: string}\n   - {name: submitter_id, type: string}\n   - {name: assignee_id, type: string}\n   - {name: organization_id, type: string}\n   - {name: group_id, type: string}\n   - {name: collaborator_ids, type: json}\n   - {name: follower_ids, type: json}\n   - {name: email_cc_ids, type: json}\n   - {name: forum_topic_id, type: string}\n   - {name: problem_id, type: string}\n   - {name: has_incidents, type: boolean}\n   - {name: is_public, type: boolean}\n   - {name: due_at, type: string}\n   - {name: tags, type: json}\n   - {name: custom_fields, type: json}\n   - {name: satisfaction_rating, type: json}\n   - {name: sharing_agreement_ids, type: json}\n   - {name: fields, type: json}\n   - {name: followup_ids, type: json}\n   - {name: ticket_form_id, type: string}\n   - {name: brand_id, type: string}\n   - {name: satisfaction_probability, type: string}\n  - {name: allow_channelback, type: boolean}\n  - {name: allow_attachments, type: boolean}\n  - {name: generated_timestamp, type: long}\nout:\n  {mode: append}\nexec: {}\nfilters:\n  type: add_time\n  from_value:\n    {mode: upload_time}\n    to_column: {name: time}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次に、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["preview"]},"コマンドを使用して、システムがファイルをどのように解析するかをプレビューできます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td connector:preview load.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["システムが予期しないカラム名や型を検出した場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["load.yml"]},"を直接変更して再度プレビューしてください。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Data Connectorは、「boolean」、「long」、「double」、「string」、および「timestamp」型の解析をサポートしています。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロードジョブの実行","__idx":16},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ロードジョブを送信します。データサイズによっては数時間かかる場合があります。ユーザーは、データが保存されるデータベースとテーブルを指定する必要があります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["上記のコマンドは、*database(td_sample_db)",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["と"]},"table(td_sample_table)*がすでに作成されていることを前提としています。データベースまたはテーブルがTDに存在しない場合、このコマンドは成功しませんので、データベースとテーブルを",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-management"},"children":["手動で"]},"作成するか、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:issue"]},"コマンドで",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--auto-create-table"]},"オプションを使用してデータベースとテーブルを自動的に作成してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table --time-column created_at --auto-create-table\n"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["「--time-column」オプションを使用して、Time Formatカラムを「Partitioning Key」に割り当てることができます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"インクリメンタルロード","__idx":17},"children":["インクリメンタルロード"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental"]},"フラグを使用して、Zendeskからレコードをインクリメンタルにロードできます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["False"]},"の場合、next.ymlの",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_time"]},"と",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["end_time"]},"は更新されません。コネクターは常に静的な条件でZendeskからすべてのデータを取得します。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["True"]},"の場合、next.ymlで",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_time"]},"と",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["end_time"]},"が更新されます。デフォルトは",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["True"]},"です。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: zendesk\n  login_url: https://YOUR_DOMAIN_NAME.zendesk.com\n  auth_method: token\n  username: YOUR_EMAIL_ADDRESS\n  token: YOUR_API_TOKEN\n  target: tickets\n  start_time: \"2007-01-01 00:00:00+0000\"  end_time: \"2008-01-01 00:00:00+0000\"\n  incremental: true\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"カーソルページネーションを使用したリストのページネーション","__idx":18},"children":["カーソルページネーションを使用したリストのページネーション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Zendeskは、100,000件を超えるレコードを取得できるページネーションエンドポイントをサポートしています。このエンドポイントは、usersとticketsターゲットにのみ適用されます。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://support.zendesk.com/hc/en-us/articles/4408846180634-Introducing-Pagination-Changes-Zendesk-API"},"children":["Introducing Pagination Changes - Zendesk API"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいエンドポイントを使用するには、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enable cursor-based API"]},"を有効にしてください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"詳細情報","__idx":19},"children":["詳細情報"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/embulk-input-zendesk"},"children":["Zendesk Data Connectorのオプションリスト"]}]}]}]},"headings":[{"value":"Zendesk Import Integration","id":"zendesk-import-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Treasure Data Integration の静的 IP アドレス","id":"treasure-data-integration-の静的-ip-アドレス","depth":2},{"value":"Treasure コンソール経由でZendeskからインポート","id":"treasure-コンソール経由でzendeskからインポート","depth":2},{"value":"新しい認証の作成","id":"新しい認証の作成","depth":3},{"value":"Treasure Dataへデータを転送","id":"treasure-dataへデータを転送","depth":3},{"value":"ソースプレビュー","id":"ソースプレビュー","depth":3},{"value":"詳細設定","id":"詳細設定","depth":4},{"value":"Data Placement","id":"data-placement","depth":3},{"value":"一度だけ実行","id":"一度だけ実行","depth":4},{"value":"定期的に繰り返す","id":"定期的に繰り返す","depth":4},{"value":"Workflow経由でZendeskからインポート","id":"workflow経由でzendeskからインポート","depth":2},{"value":"CLI経由でZendeskからインポート","id":"cli経由でzendeskからインポート","depth":2},{"value":"'td'コマンドのインストール","id":"tdコマンドのインストール","depth":3},{"value":"Seed設定ファイル（seed.yml）の作成","id":"seed設定ファイルseedymlの作成","depth":3},{"value":"フィールドの推測（load.ymlの生成）","id":"フィールドの推測loadymlの生成","depth":3},{"value":"ロードジョブの実行","id":"ロードジョブの実行","depth":3},{"value":"インクリメンタルロード","id":"インクリメンタルロード","depth":3},{"value":"カーソルページネーションを使用したリストのページネーション","id":"カーソルページネーションを使用したリストのページネーション","depth":3},{"value":"詳細情報","id":"詳細情報","depth":2}],"frontmatter":{"seo":{"title":"Zendesk Import Integration"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/zendesk-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}