{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","partial","tabs","tab"]},"type":"markdown"},"seo":{"title":"Salesforce Export Integration","description":"Salesforceエクスポート統合により、Treasure AIからSalesforceオブジェクトにデータを直接書き込むための設定と認証方法を説明します。","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-export-integration","__idx":0},"children":["Salesforce Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Salesforce（SFDC）は、主要な顧客関係管理（CRM）プラットフォームです。営業、カスタマーサービス、マーケティングオートメーション、eコマース、分析、およびアプリケーション開発に焦点を当てたCRMソフトウェアとアプリケーションを提供しています。大小150,000社以上の企業が、Salesforceでビジネスを成長させています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このTDエクスポート統合により、Treasure DataからジョブResultをSFDCのバージョン2に直接書き込むことができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["APIアクセス権を持つ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://salesforce.com"},"children":["Salesforce.com"]},"アカウント。",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Credentials"]}," 認証の場合: ユーザー名、パスワード、およびセキュリティトークン。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Credentials"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth"]}," 認証の場合: Connected AppまたはExternal Client App（ECA）のクライアントIDとクライアントシークレット。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["「API Enabled」権限が有効になっている。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲット",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://salesforce.com"},"children":["Salesforce.com"]},"オブジェクトが存在し、それに対する読み取りおよび書き込み権限を持っている。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ユーザープロファイルで「Hard delete」権限が有効になっている。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"static-ip-address-of-treasure-data-integration","__idx":2},"children":["Static IP Address of Treasure Data Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If your security policy requires IP whitelisting, you must add Treasure Data's IP addresses to your allowlist to ensure a successful connection."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Please find the complete list of static IP addresses, organized by region, at the following ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/ip-addresses-integrations-result-workers"},"children":["document"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"サポートされている認証方法","__idx":3},"children":["サポートされている認証方法"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SFDC V2出力は以下の認証タイプをサポートしています:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Credentials"]},"（非推奨）",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["この方法は非推奨です。Salesforce External Client Apps（ECA）はUsername-Password OAuthフローをサポートしていません。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Credentials"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth"]}," に移行してください。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Session ID"]},"（非推奨）",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["この方法は非推奨です。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Credentials"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth"]}," に移行してください。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Credentials"]},"（External Client Appsに推奨）",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["OAuth 2.0 Client Credentials Flowを使用します。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client_id"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client_secret"]}," のみが必要です。ユーザー名、パスワード、セキュリティトークンは不要です。"]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"OAuth の制限"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証タイプOAuthを利用したサンドボックス環境への接続はサポートされていません。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tdにsalesforceへのアクセスを許可する","__idx":4},"children":["TDにSalesforceへのアクセスを許可する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"client-credentials-flow用のexternal-client-appを設定する","__idx":5},"children":["Client Credentials Flow用のExternal Client Appを設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の手順に従って、SalesforceにExternal Client App（ECA）を設定し、Client Credentials Flowを使用します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"settings-tab","__idx":6},"children":["Settings Tab"]},{"$$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":["External Client Apps"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["External Client App Manager"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["新しいアプリを追加するか、既存のアプリを編集します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings"]},"タブで",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Edit"]},"をクリックします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth Settings"]},"を展開します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["必要な",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth Scopes"]},"を追加します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enable Client Credentials Flow"]},"をチェックします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]},"をクリックします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/external_client_app_1.1a5bf858a7851f89bb86a4813a3bdef56c3d032b5afc00a870aae64eeccf9224.3074136a.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"policies-tab","__idx":7},"children":["Policies Tab"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Policies"]},"タブで",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Edit"]},"をクリックします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth Policies"]},"を展開します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Enable Client Credentials Flow"]},"をチェックします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Run As (Username)"]}," を入力します — これはインテグレーションが実行されるSalesforceユーザーです。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]},"をクリックします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/external_client_app_2.aa267ddc0670ac270fa240720a9f2e1ea5e7a287e4703fe97f228eca8d6e76ca.3074136a.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["保存後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings"]}," タブからアプリの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Consumer Key"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client_id"]},"）と ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Consumer Secret"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client_secret"]},"）をメモしてください。Treasure Dataでの接続設定に必要になります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールを使用して接続を作成する","__idx":8},"children":["Treasure コンソールを使用して接続を作成する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい認証を作成する","__idx":9},"children":["新しい認証を作成する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Integrations Hub > Catalogに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["salesforceを検索してsalesforceを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/sfdcv2.de86ac7d6430b8aaca6d24f4875cee42be960b53f7a489ab846fb8b3cf5ec874.9253be9a.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証するための資格情報を入力します:"]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Client Credentialsで認証","disable":false},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証方法として ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Credentials"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["External Client Appの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client ID"]}," と ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Secret"]}," を入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Login URL"]}," フィールドに、SalesforceのMy Domain URL（例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://yourorg.my.salesforce.com"]},"）を入力します。Client Credentials Flowでは汎用の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://login.salesforce.com"]}," URLはサポートされていません。詳細は ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://help.salesforce.com/s/articleView?id=xcloud.remoteaccess_oauth_client_credentials_flow.htm"},"children":["Salesforce OAuth 2.0 Client Credentials Flow"]}," を参照してください。"]}]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"OAuthで認証","disable":false},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{},"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":"TabItemFragment","attributes":{"label":"Credentialsで認証","disable":false},"children":[{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"非推奨"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Credentials"]},"（Username-Password）認証方法は非推奨です。Salesforce External Client Apps（ECA）はUsername-Password OAuthフローをサポートしていません。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Credentials"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth"]}," に移行してください。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["credentialsで認証するには、ユーザー名（メール）、パスワード、クライアントID、クライアントシークレット、およびセキュリティトークンを入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Login URL"]}," フィールドに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://login.salesforce.com"]}," を入力します。"]}]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Session IDで認証","disable":false},"children":[{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"非推奨"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Session ID"]}," 認証方法は非推奨です。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Credentials"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth"]}," に移行してください。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証方法として ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Session ID"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Login URL"]}," フィールドに、SalesforceインスタンスのURLを入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["SalesforceセッションのSession IDを入力します。"]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"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":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Login URL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforceログインurl、例: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://login.salesforce.com"},"children":["https://login.salesforce.com"]}," 認証方法がSession IDの場合、値はSalesforceインスタンスURLである必要があります。認証方法がClient Credentialsの場合、汎用の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://login.salesforce.com"]}," URLはサポートされていません。代わりにSalesforceのMy Domain URL（例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://yourorg.my.salesforce.com"]},"）を使用してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Authentication method"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["4種類の認証をサポート: - Client Credentials - Credentials - OAuth - Session ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuth connection"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Username"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforceログインユーザー名。認証方法がcredentialsの場合に必須"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Password"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforceログインパスワード。認証方法がcredentialsの場合に必須"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Client ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SalesforceアプリのクライアントID。Client Credentials認証に必須"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Client secret"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforceアプリのクライアントシークレット。Client Credentials認証に必須"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Security token"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パスワードフィールドに追加されている場合、このフィールドは省略できます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Session ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SalesforceのセッションID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Initial retry delay"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["接続に失敗した最初の時間、再試行前に待機する秒数（指数バックオフ付き）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Retry limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["再試行の最大回数"]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Continueを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["接続の名前を入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Doneを選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クエリを定義する","__idx":10},"children":["クエリを定義する"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["結果エクスポートの問題を回避するため、クエリで列エイリアスを定義して、クエリからの結果列名がデフォルトフィールドのSalesforceフィールド名と、カスタムフィールドのAPI名（通常__cで終わる）と一致するようにします。"]}]},{"$$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":"strong","attributes":{},"children":["New Query"]}," を選択します。"]}]},{"$$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/sfdcv2query.eb1160a22c37b2a4876919165e47c0267e873f6e401d771bc8114d768d752753.9253be9a.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"結果エクスポートターゲットを指定する","__idx":11},"children":["結果エクスポートターゲットを指定する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Export Resultsを選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/sfdcv2queryexport.526b07ce994cc9331e8745f4aba3e2397c737a0edbc62d74563c815fbe3f0e6d.9253be9a.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["出力に使用する外部サービスの既存の認証を選択するか、新しい認証を作成できます。以下のいずれかを選択します:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["既存の統合を使用"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-9-7_15-28-30.d271866c7c3cea4dab234b61bea815a69b186746c80435855b4b86d1f77cc30e.9253be9a.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["新しい統合を作成:"]}," OAuthをサポートするプラグインの場合、このオプションは使用できません。ユーザーはカタログに戻って接続を作成する必要があります"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screen-shot-2023-08-24-at-14.30.24.9b962884faf1d0561bff81304019302bb5c5b92767954282c74e52a3683c6965.9253be9a.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["既存の統合を使用"]}," の場合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2023-08-25-at-12.28.55.928889ea6142488f706572795e8ed380f32e29c35a5d2113ff62b8062159a0d0.9253be9a.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":{"width":"25%","data-label":"Parameter"},"children":["Parameter "]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["APPEND"]},": Appendモードは、URLにmodeオプションが指定されていない場合に使用されるデフォルトです。このモードでは、クエリ結果がオブジェクトに追加されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TRUNCATE"]},"—truncateモードでは、システムは最初にSalesforce内の既存のレコードをトランケートしてから、クエリ結果を挿入します。",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Hard delete?"]}," チェックボックスがチェックされている場合、オブジェクトはSalesforceから完全に削除され、次にクエリ結果が挿入されます。このアクションには、Salesforceでhard delete権限が有効になっている必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Hard delete?"]}," チェックボックスがチェックされていない場合、オブジェクトは ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Trashbin"]}," に移動され、次にクエリ結果が挿入されます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["UPDATE"]},"—このモードでは「unique」パラメータが必要で、Salesforceで外部キーとして定義されている必要があります。",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Upsert new records?"]}," チェックボックスがチェックされている場合、uniqueはSalesforceのexternalIdフィールドである必要があります。",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["uniqueパラメータがSalesforceに存在する場合、現在の行が更新されます。それ以外の場合は、Salesforceに挿入されます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Upsert new records?"]}," チェックボックスがチェックされていない場合:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["uniqueパラメータがIDで、行とSalesforceに存在する場合、現在の行が更新されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["uniqueパラメータがIDでない場合、SalesforceからクエリされたIdがSalesforceでの更新のuniqueフィールドとして使用されます。"]}]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://salesforce.com"},"children":["Salesforce.com"]},"オブジェクト"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Upsert new records?"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このオプションは、modeがupdateの場合に利用可能です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Key"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このオプションは、modeがupdateの場合に利用可能です。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Upsert new records?"]}," チェックボックスがチェックされている場合、このフィールドはSalesforceのexternalIdフィールドである必要があります。externalIdフィールドはカスタムフィールドに対してのみ設定できます。Id、CreatedDate、LastModifiedDate、CreatedByIDなどのシステムフィールドは、カスタムフィールドではありません。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Hard delete?"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このオプションは、modeがtruncateの場合に利用可能です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Concurrency mode"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["concurrency_modeオプションは、データが",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://salesforce.com"},"children":["Salesforce.com"]},"組織にアップロードされる方法を制御します。デフォルトモードはparallelです。parallelメソッドでは、データは並列でアップロードされます。これはほとんどの状況で最も信頼性が高く効果的な方法です。「UNABLE_TO_LOCK_ROW」というエラーメッセージが表示される場合は、代わりにconcurrency_mode=serialを試してください。"]}]},{"$$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":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["API version"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Salesforce APIバージョン。デフォルトは32.0です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Initial retry delay"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["接続の最初の試行が失敗した場合、再試行前にこの秒数待機します（指数バックオフ付き）。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Retry limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このオプションは、エラーが発生した場合に設定された",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://salesforce.com"},"children":["Salesforce.com"]},"宛先に結果を書き込むために試行する回数を設定します。エクスポートが設定された再試行回数よりも多く失敗した場合、クエリは失敗します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["フィールドに必要な情報を入力したら、Doneを選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"optional-schedule-query-export-jobs","__idx":12},"children":["(Optional) Schedule Query Export Jobs"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can use Scheduled Jobs with Result Export to periodically write the output result to a target destination that you specify."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data's scheduler feature supports periodic query execution to achieve high availability."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When two specifications provide conflicting schedule specifications, the specification requesting to execute more often is followed while the other schedule specification is ignored."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example, if the cron schedule is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * 1'"]},", then the 'day of month' specification and 'day of week' are discordant because the former specification requires it to run every first day of each month at midnight (00:00), while the latter specification requires it to run every Monday at midnight (00:00). The latter specification is followed."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"scheduling-your-job-using-treasure-console","__idx":13},"children":["Scheduling your Job Using Treasure Console"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Navigate to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench > Queries"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a new query or select an existing query."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Next to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]},", select 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":["In the drop-down, select one of the following schedule options:"," ",{"$$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":"Drop-down Value"},"children":["Drop-down Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$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":["Review ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#custom-cron-details"},"children":["Custom cron... details"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@daily (midnight)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run once a day at midnight (00:00 am) in the specified time zone."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@hourly (:00)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run every hour at 00 minutes."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No schedule."]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"custom-cron-details","__idx":14},"children":["Custom cron... Details"]},{"$$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 Value"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cron Value"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"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":"code","attributes":{},"children":["0 * * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run once an hour."]}]},{"$$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":["Run once a day at midnight."]}]},{"$$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":["Run once a month at midnight on the morning of the first day of the month."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create a job that has no scheduled run time."]}]}]}]}]},{"$$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":["The following named entries can be used:"]},{"$$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":["A single space is required between each field. The values for each field can be composed of:"]},{"$$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":"Field Value"},"children":["Field Value "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"20%","data-label":"Example"},"children":["Example "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"45%","data-label":"Example Description"},"children":["Example Description "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A single value, within the limits displayed above for each field."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A wildcard ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]}," to indicate no restriction based on the field."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Configures the schedule to run at midnight (00:00) on the first day of each month."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A range ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2-5'"]},", indicating the range of accepted values for the field."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1-10 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Configures the schedule to run at midnight (00:00) on the first 10 days of each month."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A list of comma-separated values ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,3,4,5'"]},", indicating the list of accepted values for the field."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1,11,21 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Configures the schedule to run at midnight (00:00) every 1st, 11th, and 21st day of each month."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A periodicity indicator ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*/5'"]}," to express how often based on the field's valid range of values a schedule is allowed to run."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'30 */2 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Configures the schedule to run on the 1st of every month, every 2 hours starting at 00:30. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 */5 * *'"]}," configures the schedule to run at midnight (00:00) every 5 days starting on the 5th of each month."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A comma-separated list of any of the above except the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]}," wildcard is also supported ",{"$$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":["Configures the schedule to run at midnight (00:00) every 5th, 10th, 20th, and 25th day of each month."]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["(Optional) You can delay the start time of a query by enabling the Delay execution."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"execute-the-query","__idx":15},"children":["Execute the Query"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Save the query with a name and run, or just run the query. Upon successful completion of the query, the query result is automatically exported to the specified destination."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Scheduled jobs that continuously fail due to configuration errors may be disabled on the system side after several notifications."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["(Optional) You can delay the start time of a query by enabling the Delay execution."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"activate-a-segment-in-audience-studio","__idx":16},"children":["Activate a Segment in Audience Studio"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can also send segment data to the target platform by creating an activation in the Audience Studio."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Navigate to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Audience Studio"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select a parent segment."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open the target segment, right-mouse click, and then select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Activation."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]}," panel, enter an Activation name and configure the activation according to the previous section on Configuration Parameters."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Customize the activation output in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output Mapping"]}," panel."]}]},{"$$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":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export All Columns"]}," to export all columns without making any changes."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," to add specific columns for the export. The Output Column Name pre-populates with the same Source column name. You can update the Output Column Name. Continue to select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]},"to add new columns for your activation output."]}]}]},{"$$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"]}," to create strings for export. Select from the following values:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String: Choose any value; use text to create a custom value."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp: The date and time of the export."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Id: The segment ID number."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Name: The segment name."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Id: The parent segment number."]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Set a ",{"$$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":["Select the values to define your schedule and optionally include email notifications."]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]},"."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you need to create an activation for a batch journey, review ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/creating-a-batch-journey-activation"},"children":["Creating a Batch Journey Activation"]},"."]}]}]},"headings":[{"value":"Salesforce Export Integration","id":"salesforce-export-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Static IP Address of Treasure Data Integration","id":"static-ip-address-of-treasure-data-integration","depth":2},{"value":"サポートされている認証方法","id":"サポートされている認証方法","depth":2},{"value":"TDにSalesforceへのアクセスを許可する","id":"tdにsalesforceへのアクセスを許可する","depth":2},{"value":"Client Credentials Flow用のExternal Client Appを設定する","id":"client-credentials-flow用のexternal-client-appを設定する","depth":3},{"value":"Settings Tab","id":"settings-tab","depth":4},{"value":"Policies Tab","id":"policies-tab","depth":4},{"value":"Treasure コンソールを使用して接続を作成する","id":"treasure-コンソールを使用して接続を作成する","depth":2},{"value":"新しい認証を作成する","id":"新しい認証を作成する","depth":3},{"value":"クエリを定義する","id":"クエリを定義する","depth":3},{"value":"結果エクスポートターゲットを指定する","id":"結果エクスポートターゲットを指定する","depth":3},{"value":"(Optional) Schedule Query Export Jobs","id":"optional-schedule-query-export-jobs","depth":3},{"value":"Scheduling your Job Using Treasure Console","id":"scheduling-your-job-using-treasure-console","depth":4},{"value":"Custom cron... Details","id":"custom-cron-details","depth":4},{"value":"Execute the Query","id":"execute-the-query","depth":3},{"value":"Activate a Segment in Audience Studio","id":"activate-a-segment-in-audience-studio","depth":2}],"frontmatter":{"seo":{"title":"Salesforce Export Integration","description":"Salesforceエクスポート統合により、Treasure AIからSalesforceオブジェクトにデータを直接書き込むための設定と認証方法を説明します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/salesforce-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}