{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Salesforce Legacy Export Integration","description":"Salesforce と Treasure AI の統合により、マーケティングとセールスのデータ管理を効率化し、顧客インサイトを向上させる方法を解説します。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"salesforce-legacy-export-integration","__idx":0},"children":["Salesforce Legacy Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Salesforce と Treasure Data を連携することで、Salesforce データをより適切に管理し、マーケティングおよびセールスオペレーションスタック内の他のビジネスアプリケーションとの統合を改善できます。Salesforce と Treasure Data の統合により、次のことが簡単になります。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Salesforce に新しい機能を追加する。"]}," たとえば、Web 使用状況を追跡し、顧客の製品使用量が減少したときにアラートを受信することで、解約を防止できます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Salesforce データを使用してマーケティングスタックの他の部分を改善する。"]}," たとえば、Facebook Custom Audiences から新規顧客を自動的に削除することで、Facebook 広告の ROI を向上させることができます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Salesforce からデータをエクスポートするサンプルワークフローについては、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/treasure-boxes/tree/master/td/sfdc"},"children":["Treasure Boxes"]}," を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure アカウントをまだお持ちでない場合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.treasuredata.com/contact-us/"},"children":["お問い合わせ"]},"ください。セットアップのお手伝いをいたします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["フロントエンドアプリケーションは、Log/data collector daemon または Mobile SDKs を介して Treasure Data に収集されるデータをストリーミングします。また、CLI から Bulk Import を使用してデータを一括インポートすることもできます。スケジュール済みクエリが Treasure Data でセットアップされ、データに対して定期的に実行され、各クエリ実行の結果が Salesforce.com Object に書き込まれます。次に示すのは、かなり一般的なアーキテクチャの例です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20201023-225746.411557329ca7ac467dcadc71de81738abc53ae3fccba162458a3951377529c8e.0ef47029.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ランキング-x-の上位-n-は何ですか","__idx":1},"children":["ランキング: \"X の上位 N\" は何ですか？"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["すべてのソーシャル/モバイルアプリケーションは、\"X の上位 N\"（例: 今日視聴された映画のトップ 5）を計算します。Treasure Data はすでに生のデータウェアハウジングを処理しています。\"",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://write-to-salesforce.com/"},"children":["write-to-salesforce.com"]},"\" 機能により、Treasure Data は \"上位 N\" データも検索できるようになります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ダッシュボードアプリケーション","__idx":2},"children":["ダッシュボードアプリケーション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データサイエンティストの場合、毎時/毎日/毎月のさまざまなメトリクスを追跡し、可視化を通じてアクセス可能にする必要があります。この \"",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://write-to-salesforce.com/"},"children":["write-to-Salesforce.com"]},"\" 機能を使用すると、プロセスを合理化し、Salesforce.com 組織のレポートとダッシュボードを介してクエリ結果の可視化の構築に集中できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":3},"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":["API 統合用の Salesforce.com 組織、ユーザー名、パスワード、およびセキュリティトークン。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["\"API Enabled\" 権限を持っていること。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲットの Salesforce.com Object が読み取りおよび書き込み権限付きで存在すること。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"サポートされている認証方法","__idx":4},"children":["サポートされている認証方法"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SFDC output は、これらの認証タイプをサポートしています。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証情報"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["セッション"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"treasure-コンソール-を使用して接続を作成する","__idx":5},"children":["Treasure コンソール を使用して接続を作成する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"新しい接続を作成する","__idx":6},"children":["新しい接続を作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソール を使用して Salesforce に接続するのは、迅速かつ簡単です。または、コマンドラインを使用して Salesforce 接続を作成します。エクスポート統合は認証情報をサポートしています。認証情報を使用して認証するには、クライアント ID とクライアントシークレットが必要です。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"salesforce-を使用して-td-が-salesforce-にアクセスできるようにする","__idx":7},"children":["Salesforce を使用して TD が Salesforce にアクセスできるようにする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これらの手順では、認証情報を使用して認証するために必要なクライアント ID とクライアントシークレットを見つける方法を案内します。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これは Lightning Experience UI のガイドです。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Setup"]}," >",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Apps"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["App Manager"]}," に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Connected App"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["いくつかの値を設定し、Enable OAuth Settings をチェックします。次に、OAuth 権限スコープを付与します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/oauth_setting.7fc14f2db75ac78c8f2ac3de705e2fab32f3eb4f5209915dc51d425433ace4aa.9939779b.png","alt":""},"children":[]}," ","4. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]}," をクリックします。有効化には最大 10 分かかる場合があります。"," ","5. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Setup"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Apps"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["App Manager"]}," に移動します。"," ","6. 接続済みアプリを見つけ、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["▼"]}," をクリックして、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["View"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/connected_app.9e63c75823ffc511c1015194c179433b8099f9f358711098a1699ee6e4f1bed8.9939779b.png","alt":""},"children":[]}," ","7. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Consumer Key"]},"（client_id）と ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Consumer Secret"]},"（client_secret）を書き留めるかコピーします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/crient_secret.34a2b6324e27f53438e82f7a396c84b094c94c190bc093a92ddbf504fc0c7bd3.9939779b.png","alt":""},"children":[]}," ","8. セキュアなアカウントアクセスのために、Salesforce セキュリティトークンを取得します。セキュリティトークンを持っていない場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Account"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Reset My Security Token"]}," に移動し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Reset Security Token"]}," を選択します。セキュリティトークンがメールで送信されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Spring 19 classic UI の場合: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["My account"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["My Settings"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Personal"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Reset My Security Token"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソール-を使用する","__idx":8},"children":["Treasure コンソール を使用する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-コンソール-で新しい接続を作成する","__idx":9},"children":["Treasure コンソール で新しい接続を作成する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure コンソール"]}," を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]}," に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Salesforce"]}," を検索します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-20_13-37-37.ea3e276f3d1c7287bb5c1f2c0e4d3b9220f1ce99e54b863e7353dbe50cf6b5e0.0ef47029.png","alt":""},"children":[]}," ","4. 認証情報で認証するには"]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証情報で認証するには、ユーザー名（メールアドレス）とパスワード、およびクライアント ID、クライアントシークレット、セキュリティトークンを入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ダイアログボックスで、ログイン URL として ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://login.salesforce.com/"},"children":["login.salesforce.com"]}," を入力します。Login URL パラメータから不要な文字を削除します。",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200703-001720.af452b1f9ec571b64403178a495107a980e547d907f48f30614cf4b53843e7ed.0ef47029.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["接続にわかりやすい名前を付け、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Connection"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"salesforce-接続を検証する","__idx":10},"children":["Salesforce 接続を検証する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ユーザー権限を検証するには、必ず Salesforce を使用して検証してください。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["権限: Salesforce エクスポート統合接続の手順を確認してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Data から Salesforce へのアクセスが許可されていること: これを設定するには、TD 静的 IP アドレスを知って設定する必要がある場合があります。静的 IP アドレス情報が必要な場合は、サポートにお問い合わせください。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["権限とアクセスが適切に設定されていないと、アクセス制限エラーが発生する可能性があります。例えば:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Response not 2xx:\n400 Bad Request {\"error\":\"invalid_grant\",\"error_description\":\"authentication failure\"}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリを定義する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ポップアップメニューからデータベースとテーブルを選択します。クエリを入力して、Output results を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["結果のエクスポートに問題が発生しないようにするには、クエリの列エイリアスを定義して、クエリから得られる列名がデフォルトフィールドの Salesforce フィールド名、およびカスタムフィールドの API 名（通常は __c で終わる）と一致するようにします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"salesforce-の統合パラメータ","__idx":11},"children":["Salesforce の統合パラメータ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-20_13-44-4.9d012ff1074ecec7fb8ebf67e6c03037b9c1eddb676242d774f81a788b26645d.0ef47029.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":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforce.com Object"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- append モードは、URL にモードオプションが指定されていない場合に使用されるデフォルトです。このモードでは、クエリ結果がオブジェクトに追加されます。 - truncate モードでは、システムは最初に Salesforce.com Object の既存のレコードを切り捨ててゴミ箱に移動し、次にクエリ結果を挿入します。 - update モードでは、\"unique\" パラメータで指定された外部キー列に重複値が発生しない限り、行が挿入されます。そのような場合、代わりに更新が実行されます。\"unique\" パラメータはこのモードで必須であり、update モードで使用する場合は外部キーとして定義する必要があります。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Concurrency mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["concurrency_mode オプションは、データが Salesforce.com 組織にアップロードされる方法を制御します。デフォルトモードは parallel です。  parallel メソッドでは、データが並列でアップロードされます。これはほとんどの状況で最も信頼性が高く効果的なメソッドです。  エラーメッセージに \"UNABLE_TO_LOCK_ROW\" が表示される場合は、代わりに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["concurrency_mode=serial"]}," を試してください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Retry Limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このオプションは、エラーが発生した場合に設定された Salesforce.com 宛先に結果を書き込む試行回数を設定します。設定された再試行回数よりも多くエクスポートが失敗した場合、クエリは失敗します。デフォルトの再試行回数は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["retry=2"]}," です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Batch size"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["デフォルトでは、クエリの結果のレコードを 10000 レコードのチャンクに分割し、一度に 1 つのチャンクを一括アップロードします。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クエリの例","__idx":12},"children":["クエリの例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-5-20_13-20-31.8344be45d149803e97d943a8a34d6a1b98dc5e4ec54405258b1625b23f51dc0c.0ef47029.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT identifier_type, identifier\nFROM table my_table\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"オプション-query-export-ジョブをスケジュールする","__idx":13},"children":["(オプション) Query Export ジョブをスケジュールする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Scheduled Jobs と Result Export を使用して、指定したターゲット宛先に出力結果を定期的に書き込むことができます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data のスケジューラー機能は、高可用性を実現するために定期的なクエリ実行をサポートしています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["2 つの仕様が競合するスケジュール仕様を提供する場合、より頻繁に実行するよう要求する仕様が優先され、もう一方のスケジュール仕様は無視されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例えば、cron スケジュールが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * 1'"]}," の場合、「月の日」の仕様と「週の曜日」が矛盾します。前者の仕様は毎月 1 日の午前 0 時 (00:00) に実行することを要求し、後者の仕様は毎週月曜日の午前 0 時 (00:00) に実行することを要求するためです。後者の仕様が優先されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"treasure-コンソール-を使用してジョブをスケジュールする","__idx":14},"children":["Treasure コンソール を使用してジョブをスケジュールする"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench > Queries"]}," に移動します"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいクエリを作成するか、既存のクエリを選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," の横にある None を選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-28-51.f1b242f6ecc7666a0097fdf37edd1682786ec11ef80eff68c66f091bc405c371.0f87d8d4.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ドロップダウンで、次のスケジュールオプションのいずれかを選択します:"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-29-47.45289a1c99256f125f4d887e501e204ed61f02223fde0927af5f425a89ace0c0.0f87d8d4.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":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom cron..."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#custom-cron-details"},"children":["Custom cron... の詳細"]},"を参照してください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@daily (midnight)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["指定されたタイムゾーンで 1 日 1 回午前 0 時 (00:00 am) に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@hourly (:00)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎時 00 分に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュールなし。"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"custom-cron-の詳細","__idx":15},"children":["Custom cron... の詳細"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-30-23.0f94a8aa5f75ea03e3fec0c25b0640cd59ee48d1804a83701e5f2372deae466c.0f87d8d4.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":"Cron 値"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cron 値"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 * * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 時間に 1 回実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 日 1 回午前 0 時に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 1 * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日の午前 0 時に 1 回実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュールされた実行時刻のないジョブを作成します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":" *    *    *    *    *\n -    -    -    -    -\n |    |    |    |    |\n |    |    |    |    +----- day of week (0 - 6) (Sunday=0)\n |    |    |    +---------- month (1 - 12)\n |    |    +--------------- day of month (1 - 31)\n |    +-------------------- hour (0 - 23)\n +------------------------- min (0 - 59)\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の名前付きエントリを使用できます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Day of Week: sun, mon, tue, wed, thu, fri, sat."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Month: jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["各フィールド間には単一のスペースが必要です。各フィールドの値は、次のもので構成できます:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"fixed-table"},"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":{"width":"35%","data-label":"フィールド値"},"children":["フィールド値 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"20%","data-label":"例"},"children":["例 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"45%","data-label":"例の説明"},"children":["例の説明 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["各フィールドに対して上記で表示された制限内の単一の値。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["フィールドに基づく制限がないことを示すワイルドカード"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]},"。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["範囲 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2-5'"]}," ","フィールドの許可される値の範囲を示します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1-10 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日から 10 日までの午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カンマ区切りの値のリスト ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,3,4,5'"]}," ","フィールドの許可される値のリストを示します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 1,11,21 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日、11 日、21 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["周期性インジケータ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*/5'"]}," ","フィールドの有効な値の範囲に基づいて、"," ","スケジュールが実行を許可される頻度を表現します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'30 */2 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日、00:30 から 2 時間ごとに実行するようにスケジュールを設定します。"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 */5 * *'"]}," は、毎月 5 日から 5 日ごとに午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]}," ","ワイルドカードを除く上記の"," ","いずれかのカンマ区切りリストもサポートされています"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,*/5,8-10'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 5,*/10,25 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 5 日、10 日、20 日、25 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["(オプション) Delay execution を有効にすることで、クエリの開始時刻を遅延させることができます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クエリを実行する","__idx":16},"children":["クエリを実行する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリに名前を付けて保存して実行するか、単にクエリを実行します。クエリが正常に完了すると、クエリ結果は指定された宛先に自動的にエクスポートされます。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定エラーにより継続的に失敗するスケジュールジョブは、複数回通知された後、システム側で無効化される場合があります。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["(オプション) Delay execution を有効にすることで、クエリの開始時刻を遅延させることができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"audience-studio-で-segment-をアクティベートする","__idx":17},"children":["Audience Studio で Segment をアクティベートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Audience Studio で activation を作成することで、segment データをターゲットプラットフォームに送信することもできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Audience Studio"]}," に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["parent segment を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲット segment を開き、右クリックして、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Activation"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]}," パネルで、Activation 名を入力し、前述の Configuration Parameters のセクションに従って activation を設定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output Mapping"]}," パネルで activation 出力をカスタマイズします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/ouput.b2c7f1d909c4f98ed10f5300df858a4b19f71a3b0834df952f5fb24018a5ea78.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Attribute Columns",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export All Columns"]}," を選択すると、変更を加えずにすべての列をエクスポートできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択して、エクスポート用の特定の列を追加します。Output Column Name には、Source 列名と同じ名前があらかじめ入力されます。Output Column Name を更新できます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択し続けて、activation 出力用の新しい列を追加します。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String Builder",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add string"]}," を選択して、エクスポート用の文字列を作成します。次の値から選択します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String: 任意の値を選択します。テキストを使用してカスタム値を作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp: エクスポートの日時。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Id: segment ID 番号。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Name: segment 名。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Id: parent segment 番号。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を設定します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/snippet-output-connector-on-audience-studio-2024-08-28.a99525173709da1eb537f839019fa7876ffae95045154c8f2941b030022f792c.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールを定義する値を選択し、オプションでメール通知を含めます。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["batch journey の activation を作成する必要がある場合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/creating-a-batch-journey-activation"},"children":["Creating a Batch Journey Activation"]}," を参照してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"オプションでワークフローでエクスポート結果を設定する","__idx":18},"children":["オプションでワークフローでエクスポート結果を設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure ワークフロー 内で、このデータコネクタを使用してデータをエクスポートすることを指定できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/exporting-data-with-parameters"},"children":["Exporting Data with Parameters"]}," を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"salesforce-エクスポートのワークフロー例","__idx":19},"children":["Salesforce エクスポートのワークフロー例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"timezone: UTC\n\n+td-result-output-sfdc:\n  td>: queries/sample.sql\n  database: sample_datasets\n  result_connection: your_connection_name\n  result_settings:\n   object: object_name\n   mode: append\n   concurrency_mode: parallel\n   retry: 2\n   split_records: 10000\n","lang":"yaml"},"children":[]}]},"headings":[{"value":"Salesforce Legacy Export Integration","id":"salesforce-legacy-export-integration","depth":1},{"value":"ランキング: \"X の上位 N\" は何ですか？","id":"ランキング-x-の上位-n-は何ですか","depth":2},{"value":"ダッシュボードアプリケーション","id":"ダッシュボードアプリケーション","depth":2},{"value":"前提条件","id":"前提条件","depth":2},{"value":"サポートされている認証方法","id":"サポートされている認証方法","depth":1},{"value":"Treasure コンソール を使用して接続を作成する","id":"treasure-コンソール-を使用して接続を作成する","depth":1},{"value":"新しい接続を作成する","id":"新しい接続を作成する","depth":2},{"value":"Salesforce を使用して TD が Salesforce にアクセスできるようにする","id":"salesforce-を使用して-td-が-salesforce-にアクセスできるようにする","depth":2},{"value":"Treasure コンソール を使用する","id":"treasure-コンソール-を使用する","depth":2},{"value":"Treasure コンソール で新しい接続を作成する","id":"treasure-コンソール-で新しい接続を作成する","depth":3},{"value":"Salesforce 接続を検証する","id":"salesforce-接続を検証する","depth":3},{"value":"Salesforce の統合パラメータ","id":"salesforce-の統合パラメータ","depth":3},{"value":"クエリの例","id":"クエリの例","depth":3},{"value":"(オプション) Query Export ジョブをスケジュールする","id":"オプション-query-export-ジョブをスケジュールする","depth":3},{"value":"Treasure コンソール を使用してジョブをスケジュールする","id":"treasure-コンソール-を使用してジョブをスケジュールする","depth":4},{"value":"Custom cron... の詳細","id":"custom-cron-の詳細","depth":4},{"value":"クエリを実行する","id":"クエリを実行する","depth":3},{"value":"Audience Studio で Segment をアクティベートする","id":"audience-studio-で-segment-をアクティベートする","depth":2},{"value":"オプションでワークフローでエクスポート結果を設定する","id":"オプションでワークフローでエクスポート結果を設定する","depth":2},{"value":"Salesforce エクスポートのワークフロー例","id":"salesforce-エクスポートのワークフロー例","depth":3}],"frontmatter":{"seo":{"title":"Salesforce Legacy Export Integration","description":"Salesforce と Treasure AI の統合により、マーケティングとセールスのデータ管理を効率化し、顧客インサイトを向上させる方法を解説します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/salesforce-legacy-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}