{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Intercom 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":"intercom-import-integration","__idx":0},"children":["Intercom Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["IntercomからTreasure Dataへ直接データをインポートできます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"を含むTreasure Dataの基礎知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Intercomの基礎知識"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"treasure-コンソールを使用してconnectionを作成する","__idx":2},"children":["Treasure コンソールを使用してConnectionを作成する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"新しいconnectionを作成する","__idx":3},"children":["新しいConnectionを作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Integrations Hub > Catalogに移動し、Intercomを検索して選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-163206.227de535ba11d859b5f72ca39993368b027215d1731b56966a1f61fae0195574.5ce474d2.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]},"を選択します。認証済みConnectionを作成します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のダイアログが開きます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-163213.a3fc44d8e4fdc2cec029167063f6d4fe801e2201ca2ddb84b327389428ee322e.5ce474d2.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Intercomへのアクセスには、OAuth2認証が必要です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Click here"]},"を選択して、Intercomアカウントに接続します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証情報を入力してIntercomにサインインします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-163226.7bf8e404820f7180f50906343f51d0975c1cdab2ac3c1ac293ace4808e89c6be.5ce474d2.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataへのアクセスを許可すると、Treasure コンソールにリダイレクトされます。再度Intercom connectorを選択し、OAuth Authenticateメソッドを選択します。ドロップダウンリストにアカウント名を持つOAuth接続が表示されます。使用するアカウントを選択し、接続の作成に進みます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-163235.7be7aea3c68d676a1522ba30ec3a9044437329da72b90211304534929a4c4ebb.5ce474d2.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-163244.5d4e9fb45ea3b663b3d1aa82393219c3e8b58ad988d22c150ea86bd560dcb556.5ce474d2.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいGoogle Drive Connectionに名前を付けます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以前、このdata connectorでは認証に",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["App id"]},"と",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["API Key"]},"が使用されていました。しかし、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.intercom.com/docs/build-an-integration/learn-more/authentication/setting-up-oauth"},"children":["IntercomはOAuthフローを開始"]},"し、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.intercom.com/blog/announcement-upcoming-deprecation-of-api-keys"},"children":["Intercom APIキーは非推奨"]},"になりました。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google Sign-Inを使用してIntercomにログインしている場合は、OAuthフローを開始する前に、すでにIntercomにログインしていることを確認してください。IntercomはOAuthフロー経由でGoogle Sign-Inではなく、パスワードログインを要求します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"既存のapiキーベースのconnectionをoauthに更新する","__idx":4},"children":["既存のAPIキーベースのConnectionをOAuthに更新する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["APIキーを使用している場合でも、以前と同じようにOAuthフローを開始してください。両方が指定されている場合、OAuthがAPIキーよりも優先されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-dataへデータを転送する","__idx":5},"children":["Treasure Dataへデータを転送する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証済みConnectionを作成すると、自動的にAuthenticationsタブに移動します。作成したConnectionを探して、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]},"を選択します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"usersとconversationsからインポート","__idx":6},"children":["UsersとConversationsからインポート:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sourceからusersまたはconversationsを選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-163319.73d1548449516a00ddb5fe3c93b2ec55e5d5387ad117d63f61e25d017dcf58cc.5ce474d2.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-163327.738525ff2b84c207d192141fbb7774a6f23ab67899feb9cbba612d9c4e490d6b.5ce474d2.png","alt":""},"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":["Incremental"]},": スケジュールに基づいてデータをインポートする場合に使用します。前回の実行以降に作成された最新のuserまたはconversationのみをインポートするために使用します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"tagsとsegmentsからインポート","__idx":7},"children":["TagsとSegmentsからインポート:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sourceからtagsまたはsegmentsを選択します"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-163335.e3abc2f92bae7da6366e17d05abdd8ec36628fd85e2cfabd83dc65eb7aea1002.5ce474d2.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-163342.ba298752c9b7ab290168b0d743fb9931301c223806f3c4d527b2a81ff24444eb.5ce474d2.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-preview","__idx":8},"children":["Data Preview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートを実行する前に、Generate Preview を選択してデータの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/batch/import/previewing-your-source-data"},"children":["プレビュー"]},"を表示できます。Data preview はオプションであり、選択した場合はダイアログの次のページに安全にスキップできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Data Preview ページが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データをプレビューする場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Generate Preview"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データを確認します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-placement","__idx":9},"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":10},"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":11},"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":"details","__idx":12},"children":["Details"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Transferに名前を付けて、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択して開始します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-163431.eb0a775efe14f22aa08cc9d933172ac06f1c5bfc04d45f03b66a17a1054affcb.5ce474d2.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"コマンドラインの使用","__idx":13},"children":["コマンドラインの使用"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"td-コマンド-v0119-以降をインストール","__idx":14},"children":["'td' コマンド v0.11.9 以降をインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最新の ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]}," をインストールできます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td --version\n0.15.0\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"設定ファイルの作成","__idx":15},"children":["設定ファイルの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の例のように、Intercom アカウントのアクセス情報を含む設定ファイル(例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["load.yml"]},")を準備します:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Users をインポートする場合"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  type: intercom\n  access_token: xxxxxxx\n  target: users\n  incremental: false\nout:\n mode: append\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Conversations をインポートする場合"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  type: intercom\n  access_token: xxxxxxx\n  target: conversations\n  incremental: false\nout:\n mode: append\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Segments をインポートする場合"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  type: intercom\n  access_token: xxxxxxx\n  target: segments\nout:\n mode: append\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tags をインポートする場合"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  type: intercom\n  access_token: xxxxxxx\n  target: tags\nout:\n mode: append\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"access-token","__idx":16},"children":["Access Token"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["上記の例では、Intercom の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["users"]}," オブジェクトをダンプします。ここで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["access_token"]}," は、Intercom から取得した有効なアクセストークンです。Treasure コンソール を通じた OAuth フローの使用が推奨されます。OAuth フローの代わりに、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.intercom.com/docs/build-an-integration/learn-more/authentication"},"children":["Personal Access Token"]}," を ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["access_token"]}," として使用することもできます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"target","__idx":17},"children":["Target"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["target"]}," オプションで、ストアから取得するデータを選択できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"データのプレビューオプション","__idx":18},"children":["データのプレビュー(オプション)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:preview"]}," コマンドを使用して、インポート予定のデータをプレビューできます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:preview load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["+-----------+--------------+----------------------------+----"," ","| id:string | user_id:string | email:string             | ..."," ","+-----------+----------------+-------------------------------"," ","| \"1\"       | \"33\"           | \"xxxx@xxx.com\"           |"," ","| \"2\"       | \"34\"           | \"yyyy@yyy.com\"           |"," ","| \"3\"       | \"35\"           | \"zzzz@zzz.com\"           |"," ","| \"4\"       | \"36\"           | \"aaaa@aaa.com\"           |"," ","| \"6\"       | \"37\"           | \"bbbb@bbb.com\"           |"," ","+-----------+----------------+--------------------------+----"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\n## Load Jobの実行\n\nLoad Jobを送信します。データサイズによっては数時間かかる場合があります。ユーザーはデータが保存されているデータベースとテーブルを指定する必要があります。\n\nTreasure Dataのストレージは時間でパーティション化されているため、`--time-column`オプションを指定することをお勧めします。オプションが指定されていない場合、Data Connectorは最初の`long`または`timestamp`カラムをパーティショニング時間として選択します。`--time-column`で指定されるカラムのタイプは、`long`または`timestamp`タイプのいずれかである必要があります。\n\nデータに時間カラムがない場合は、`add_time`フィルターオプションを使用して追加できます。詳細は[add\\_time filter plugin](https://docs.treasuredata.com/smart/project-product-documentation/add_time-filter-function)を参照してください。\n\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["$ td connector:issue load.yml --database td_sample_db --table td_sample_table --time-column created_at"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\n上記のコマンドは、すでに*database(td\\_sample\\_db)*と*table(td\\_sample\\_table)*を作成していることを前提としています。データベースまたはテーブルがTDに存在しない場合、このコマンドは成功しないため、データベースとテーブルを[手動で](https://docs.treasuredata.com/smart/project-product-documentation/data-management)作成するか、`td connector:issue`コマンドで`--auto-create-table`オプションを使用してデータベースとテーブルを自動作成してください。\n\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["$ td connector:issue load.yml --database td_sample_db --table td_sample_table --time-column created_at --auto-create-table"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Time Format カラムを「Partitioning Key」に割り当てるには、「--time-column」オプションを使用します。\n\n# スケジュール実行\n\n定期的なIntercomインポートのために、定期的なData Connector実行をスケジュールできます。当社は高可用性を確保するためにスケジューラーを慎重に構成しています。この機能を使用することで、ローカルデータセンターで`cron`デーモンを実行する必要がなくなります。\n\n## スケジュールの作成\n\n新しいスケジュールは`td connector:create`コマンドを使用して作成できます。スケジュールの名前、cronスタイルのスケジュール、データが保存されるデータベースとテーブル、およびData Connector設定ファイルが必要です。\n\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["$ td connector:create ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"daily_intercom_import ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"\"10 0 * * *\" ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"td_sample_db ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"td_sample_table ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"load.yml"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\n`cron`パラメータは、次の3つのオプションも受け入れます：`@hourly`、`@daily`、`@monthly`。| デフォルトでは、スケジュールはUTCタイムゾーンで設定されます。`-t`または`--timezone`オプションを使用して、タイムゾーンでスケジュールを設定できます。`--timezone`オプションは、「Asia/Tokyo」、「America/Los\\_Angeles」などの拡張タイムゾーン形式のみをサポートします。PST、CSTなどのタイムゾーンの略語は\\*サポートされておらず\\*、予期しないスケジュールにつながる可能性があります。\n\n## スケジュールのリスト表示\n\n`td connector:list`でスケジュールされたエントリのリストを確認できます。\n\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["$ td connector:list"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\n## スケジュールの設定と履歴の表示\n\n`td connector:show`は、スケジュールエントリの実行設定を表示します。\n\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:show daily_intercom_import"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\n`td connector:history`は、スケジュールエントリの実行履歴を表示します。個々の実行の結果を調査するには、`td job jobid`を使用します。\n\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:history daily_intercom_import"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\n## スケジュールの削除\n\n`td connector:delete`はスケジュールを削除します。\n\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:delete daily_intercom_import"]},{"$$mdtype":"Tag","name":"div","attributes":{},"children":[]}]},"headings":[{"value":"Intercom Import Integration","id":"intercom-import-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":1},{"value":"Treasure コンソールを使用してConnectionを作成する","id":"treasure-コンソールを使用してconnectionを作成する","depth":1},{"value":"新しいConnectionを作成する","id":"新しいconnectionを作成する","depth":2},{"value":"既存のAPIキーベースのConnectionをOAuthに更新する","id":"既存のapiキーベースのconnectionをoauthに更新する","depth":4},{"value":"Treasure Dataへデータを転送する","id":"treasure-dataへデータを転送する","depth":2},{"value":"UsersとConversationsからインポート:","id":"usersとconversationsからインポート","depth":3},{"value":"TagsとSegmentsからインポート:","id":"tagsとsegmentsからインポート","depth":3},{"value":"Data Preview","id":"data-preview","depth":3},{"value":"Data Placement","id":"data-placement","depth":3},{"value":"一度だけ実行","id":"一度だけ実行","depth":4},{"value":"定期的に繰り返す","id":"定期的に繰り返す","depth":4},{"value":"Details","id":"details","depth":2},{"value":"コマンドラインの使用","id":"コマンドラインの使用","depth":1},{"value":"'td' コマンド v0.11.9 以降をインストール","id":"td-コマンド-v0119-以降をインストール","depth":3},{"value":"設定ファイルの作成","id":"設定ファイルの作成","depth":2},{"value":"Access Token","id":"access-token","depth":4},{"value":"Target","id":"target","depth":4},{"value":"データのプレビュー(オプション)","id":"データのプレビューオプション","depth":2}],"frontmatter":{"seo":{"title":"Intercom Import Integration"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/intercom-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}