{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Integrations","type":"markdown"},"seo":{"title":"Microsoft Dynamics 365 Sales Import Integration Using 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":"microsoft-dynamics-365-sales-import-integration-using-cli","__idx":0},"children":["Microsoft Dynamics 365 Sales Import Integration Using CLI"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can also use the MS Dynamics 365 Sales data connector from the command line interface. The following instructions show you how to import data using the CLI."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"install-the-td-command-v0119-or-later","__idx":1},"children":["Install the ‘td’ command v0.11.9 or later"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Install the most current ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["Treasure Data Toolbelt"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td --version\n0.11.10\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"create-seed-config-file-seedyml","__idx":2},"children":["Create Seed Config File (seed.yml)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Follow the steps here to set up access to your Dynamics 365 CRM:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Create your application and get your client_id, client_secret ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://learn.microsoft.com/en-us/power-apps/developer/data-platform/use-single-tenant-server-server-authentication"},"children":["https://learn.microsoft.com/en-us/power-apps/developer/data-platform/use-single-tenant-server-server-authentication"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Create a custom Security Role for your application user. It is recommended to create a custom security role with minimal permissions only (read permission for your desired object). See more here: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/administering-dynamics-365/dn531130(v=crm.8)#create-a-security-role"},"children":["https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/administering-dynamics-365/dn531130(v=crm.8)#create-a-security-role"]}," and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/administering-dynamics-365/dn531090(v=crm.8)#security-roles"},"children":["https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/administering-dynamics-365/dn531090(v=crm.8)#security-roles"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Create an application user from your Dynamics 365 instance. See more here: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://learn.microsoft.com/en-us/power-platform/admin/create-users#create-an-application-user"},"children":["https://learn.microsoft.com/en-us/power-platform/admin/create-users#create-an-application-user"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Assign the custom role for the application user"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Prepare seed.yml as shown in the following example, with your Microsoft Dynamics 365 details."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: ms_dynamics\n  domain: YOUR_DYNAMICS_365_DOMAIN\n  tenant_id: TENANT_ID\n  auth_method: client_credentials\n  client_id: CLIENT_ID\n  client_secret: CLIENT_SECRET\n  entity_type: contact\n  filter_from: FROM_DATE\n  incremental: true\nout:\n  mode: append\nexec: {}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For more details on available out modes, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/microsoft-dynamics-365-sales-import-integration-using-cli#h1__1835053169"},"children":["Appendix"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"supported-config-parameters","__idx":3},"children":["Supported config parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Parameters"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Value"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ms_dynamics"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["domain"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Dynamic 365 CRM domain, with or without https:// prefix"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["tenant_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Microsoft account tenant ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["auth_method"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_credentials"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Application client id"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["client_secret"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Application client secret"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["entity_type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Entity type to import. E.g. contact, account, quote etc..."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["filter_from"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Filter data from this value"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["filter_to"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Filter data to this value. If not set the default execution time is used"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["filter_column"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["column to filter data. Default ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["modifiedon"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incremental"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Import new data from the last run only"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["skip_invalid"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Skip the record when a column contains an invalid data format"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["entity_set"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Entity set name, usually in the plural form of entity_type. E.g. contacts, accounts, quotes, etc... If this value is not set, the connector will guess for entity_set from API metadata"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["columns"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Columns and their datatypes are to be imported. If this value is not set, the connector will guess for the columns and datatypes from API metadata"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["retry_limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Maximum retry times for each API call."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["retry_initial_wait_millis"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Wait time for the first retry (in milliseconds)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["max_retry_wait_millis"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Maximum time wait for an API call before it is gave up"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["connection_timeout_millis"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The amount of time before the connection times out when doing API calls."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["read_timeout_millis"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The amount of time waiting to write data into the request"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"guess-fields-generate-loadyml","__idx":4},"children":["Guess Fields (Generate load.yml)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use connector:guess. This command reads the seed.yml above, and outputs a new file"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td connector:guess seed.yml -o load.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you open load.yml, you will see the guessed entity_set and columns."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"---\nin:\n  type: ms_dynamics\n  domain: <YOUR_DYNAMICS_365_DOMAIN>\n  tenant_id: <TENANT_ID>\n  auth_method: client_credentials\n  client_id: <CLIENT_ID>\n  client_secret: <CLIENT_SECRET>\n  entity_type: contact\n  filter_from: <FROM_DATE>\n  custom_expression_filter: your custom expression filter\n  incremental: true\n  entity_set: contacts\n  columns:\n  - {name: exchangerate, type: double}\n  - {name: anniversary, type: string}\n  - {name: lastname, type: string}\n  - {name: employeeid, type: string}\n  - {name: firstname, type: string}\n  - {name: spousesname, type: string}\n  - {name: customersizecode, type: long}\n  - {name: fullname, type: string}\n\nout: {mode: append}\nexec: {}\nfilters:\n- from_value: {mode: upload_time}\n  to_column: {name: time}\n  type: add_time\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Then, you can preview the result by using the preview command."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td connector:preview load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If the system detects your column type unexpectedly, or you want to remove a column from the result, modify load.yml directly and preview again."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Currently, the Data Connector supports parsing of “boolean”, “long”, “double”, “string”, and “timestamp” types."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td database:create td_sample_db\ntd table:create td_sample_db td_sample_table\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"execute-load-job","__idx":5},"children":["Execute Load Job"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Submit the load job. It may take a couple of hours depending on the size of the data. Specify the Treasure Data database and table where the data should be stored."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["It’s also recommended to specify ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["--the time-column"]}," option, because Treasure Data’s storage is partitioned by time (see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-partitioning-in-treasure-data"},"children":["data partitioning"]},") If the option is not provided, the data connector chooses the first long or timestamp column as the partitioning time. The type of the column specified by --time-column must be either of long or timestamp type."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If your data doesn’t have a time column you can add a time column by using the add_time filter option. For more details, see the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/add_time-filter-function"},"children":["add_time filter plugin"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table --time-column created_at\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The connector:issue command assumes that you have already created a ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["database(td_sample_db)"]}," and a ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["table(td_sample_table)"]},". If the database or the table does not exist in TD, the connector:issue command fails, so create the database and table ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-management"},"children":["manually"]}," or use the ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["--auto-create-table"]}," option with td connector:issue command to auto-create the database and table:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td connector:issue load.yml --database td_sample_db --table td_sample_table --time-column created_at --auto-create-table\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you have a field called ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["time"]},", you don't have to specify the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--time-column"]}," option."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue load.yml --database td_sample_db --table td_sample_table\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"scheduled-execution","__idx":6},"children":["Scheduled execution"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can schedule periodic Data Connector execution for incremental import of new data. TD configures our scheduler carefully to ensure high availability. By using this feature, you no longer need a cron daemon on your local data center."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For more detail about the incremental loading, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/microsoft-dynamics-365-sales-import-integration"},"children":["About Incremental Loading"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"create-the-schedule","__idx":7},"children":["Create the schedule"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A new schedule can be created using the td connector:create command. The following are required:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["name of the schedule"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["cron-style schedule"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["database and table where the data will be stored"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Connector configuration file."]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:create \\\ndaily_import \\\n\"10 0 * * *\" \\\ntd_sample_db \\\ntd_sample_table \\\nload.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["It’s also recommended to specify the --time-column option because Treasure Data’s storage is partitioned by time (see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-partitioning-in-treasure-data"},"children":["data partitioning"]},")."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:create \\\ndaily_import \\\n\"10 0 * * *\" \\\ntd_sample_db \\\ntd_sample_table \\\nload.yml \\\n--time-column created_at\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]}," parameter also accepts three special options: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@hourly"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@daily"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@monthly"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["By default, the schedule is set in the UTC timezone. You can set the schedule in a timezone using the -t or --timezone option. The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone"]}," option supports only extended timezone formats like 'Asia/Tokyo', 'America/Los Angeles' etc. Timezone abbreviations like PST and CST are *not* supported and may lead to unexpected schedules."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"list-the-schedules","__idx":8},"children":["List the Schedules"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can see the list of currently scheduled entries by running the command td connector:list."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td connector:list\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"show-the-setting-and-schedule-history","__idx":9},"children":["Show the Setting and Schedule History"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector: Show the execution setting of a schedule entry."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td connector:show daily_import\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:history shows the execution history of a schedule entry. To investigate the results of each individual run, use td job jobid."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td connector:history daily_import\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"delete-the-schedule","__idx":10},"children":["Delete the Schedule"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:delete will remove the schedule."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:delete daily_import\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"appendix","__idx":11},"children":["Appendix"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"modes-for-out-plugin","__idx":12},"children":["Modes for out plugin"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can specify the file import mode in our seed.yml section."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"append-default","__idx":13},"children":["append (default)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is the default mode and records are appended to the target table."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  ...\nout:\n  mode: append\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"replace-in-td-01110-and-later","__idx":14},"children":["replace (In td 0.11.10 and later)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This mode replaces data in the target table. Note that any manual schema changes made to the target table will remain intact with this mode."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  ...\nout:\n  mode: replace\n"},"children":[]}]},"headings":[{"value":"Microsoft Dynamics 365 Sales Import Integration Using CLI","id":"microsoft-dynamics-365-sales-import-integration-using-cli","depth":1},{"value":"Install the ‘td’ command v0.11.9 or later","id":"install-the-td-command-v0119-or-later","depth":2},{"value":"Create Seed Config File (seed.yml)","id":"create-seed-config-file-seedyml","depth":2},{"value":"Supported config parameters","id":"supported-config-parameters","depth":3},{"value":"Guess Fields (Generate load.yml)","id":"guess-fields-generate-loadyml","depth":1},{"value":"Execute Load Job","id":"execute-load-job","depth":2},{"value":"Scheduled execution","id":"scheduled-execution","depth":2},{"value":"Create the schedule","id":"create-the-schedule","depth":2},{"value":"List the Schedules","id":"list-the-schedules","depth":2},{"value":"Show the Setting and Schedule History","id":"show-the-setting-and-schedule-history","depth":2},{"value":"Delete the Schedule","id":"delete-the-schedule","depth":2},{"value":"Appendix","id":"appendix","depth":1},{"value":"Modes for out plugin","id":"modes-for-out-plugin","depth":2},{"value":"append (default)","id":"append-default","depth":3},{"value":"replace (In td 0.11.10 and later)","id":"replace-in-td-01110-and-later","depth":3}],"frontmatter":{"seo":{"title":"Microsoft Dynamics 365 Sales Import Integration Using CLI"}},"lastModified":"2026-03-09T05:00:39.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/int/microsoft-dynamics-365-sales-import-integration-using-cli","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}