{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Integrations","type":"markdown"},"seo":{"title":"Salesforce Dmp Krux Export Integration CLI","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":"salesforce-dmp-krux-export-integration-cli","__idx":0},"children":["Salesforce Dmp Krux Export Integration CLI"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"install-td-command","__idx":1},"children":["Install ‘td’ Command"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Install the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"for-on-demand-jobs","__idx":2},"children":["For On-demand Jobs"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add the Salesforce DMP result output destination by using the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-r"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--result"]}," option for the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td query"]}," command:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query -d mydb \\\n-w 'SELECT user_id, td_segment FROM source_table' \\\n--type presto \\\n-r '{\"type\":\"krux_dmp\", \"access_key_id\":\"xxx\", \"secret_access_key\":\"xxx\", \"client_name\": \"name\", \"export_type\":\"first_party_segment\"}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Some parameters, such as ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["access_key_id"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["secret_access_key, client_name"]}," are the same parameters that are used in by the data connector in Treasure Console."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"for-scheduled-jobs","__idx":3},"children":["For Scheduled Jobs"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add the Salesforce DMP result output destination by using the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-r"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--result"]}," option for the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td sched:create"]}," command:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td sched:create every_6_mins \"*/6 * * * *\" \\\n-d mydb -w 'SELECT user_id, td_segment FROM source_table' \\\n--type presto \\\n-r '{\"type\":\"krux_dmp\", \"access_key_id\":\"xxx\", \"secret_access_key\":\"xxx\", \"client_name\": \"name\", \"export_type\":\"first_party_segment\"}'\n","lang":"bash"},"children":[]}]},"headings":[{"value":"Salesforce Dmp Krux Export Integration CLI","id":"salesforce-dmp-krux-export-integration-cli","depth":1},{"value":"Install ‘td’ Command","id":"install-td-command","depth":2},{"value":"For On-demand Jobs","id":"for-on-demand-jobs","depth":2},{"value":"For Scheduled Jobs","id":"for-scheduled-jobs","depth":2}],"frontmatter":{"seo":{"title":"Salesforce Dmp Krux Export Integration CLI"}},"lastModified":"2026-06-01T09:09:59.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/int/salesforce-dmp-krux-export-integration-cli","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}