For the complete documentation index, see llms.txt. This page is also available as Markdown.

Command-Line Arguments Configuration

Command-line arguments specify the Data Migration operation, Dataverse environment, connector, migration type, action, date range, and Entity Configuration to be processed.

Prerequisites

Before configuring the command-line arguments, ensure that you have:

  • Dataverse environment URL.

  • Azure application Client ID and Client Secret. Refer to Section 3.

  • Connector ID.

  • Entity Configuration ID.

  • Required migration start and end dates.

  • Application User configured in the target environment with the required permissions.

  • Valid Attach2Dynamics license.

  • Access to the configured destination.

Important: The Connector ID and Entity Configuration ID must belong to the same Dataverse environment specified in --crmUrl.

Common Command-Line Arguments

Argument

Description

--scheduler

Starts the application in scheduler mode.

--operation

Specifies the operation to execute. Use DataMigration.

--migrationType

Specifies the migration type: Notes, Activities, SalesLiterature, or EmailBodyContent.

--action

Specifies the action for supported migration types: Copy or Move.

--startDate

Specifies the migration start date.

--endDate

Specifies the migration end date.

--entityConfig

Specifies the Entity Configuration ID.

--crmUrl

Specifies the Dataverse environment URL.

--clientId

Specifies the Azure application Client ID.

--clientSecret

Specifies the Azure application Client Secret.

--connectorId

Specifies the configured Connector ID.

Command Formatting Guidelines

  • Use the date format yyyy-MM-dd, for example, 2026-10-07.

  • Use valid Connector and Entity Configuration IDs from the target environment.

  • Use one Entity Configuration ID and one Connector ID per Data Migration execution.

  • Ensure that the migration type matches the selected Entity Configuration.

  • For Notes, Activities, and SalesLiterature, specify the action as Copy or Move.

  • For EmailBodyContent, omit the --action argument.

  • Enter the complete command on one line in Task Scheduler's Add arguments field.

Data Migration Command Examples

Replace the sample Dataverse URL, credentials, Connector ID, and Entity Configuration ID with the correct values from your environment.

Notes Migration – Copy

Notes Migration – Move

Activities Migration – Copy

Activities Migration – Move

SalesLiterature Migration – Copy

SalesLiterature Migration – Move

EmailBodyContent Migration

For EmailBodyContent migration, use the following command. The --action argument is not required.

Note: For EmailBodyContent migration, the --action argument (Copy/Move) is not required. Omit this argument from the command-line syntax.

Recommendation: For Notes, Activities, and SalesLiterature, test the migration using Copy first and verify the destination content before running a Move operation.

Last updated

Was this helpful?