The XML elements in this topic are grouped by category:
Data Map Name and Description Elements
Transformation Mapping Elements
This section displays a sample data map to show you the basic structure. For samples of transformation mappings, see Transformation Reference. For additional samples, see How List Values Are Imported, and How Status and Status Reason Data Is Imported.
Sample with no transformations
<?xml version="1.0" encoding="utf-8"?>
<Map Name="Simple sample data map" Source="Sample">
<Description>Current Description: Sample data map with no lookups or transformations.</Description>
<UserIdentifier>
<SourceUserIdentifierForSourceDataSourceUserLink>Id</SourceUserIdentifierForSourceDataSourceUserLink>
<SourceUserIdentifierForSourceCRMUserLink>username</SourceUserIdentifierForSourceCRMUserLink>
<TargetUserIdentifierForSourceCRMUserLink>Primary Id</TargetUserIdentifierForSourceCRMUserLink>
</UserIdentifier>
<EntityMaps>
<EntityMap TargetEntityName="contact" SourceEntityName="contacts">
<AttributeMaps>
<AttributeMap>
<SourceAttributeName>Company Main Phone</SourceAttributeName>
<TargetAttributeName>NONE</TargetAttributeName>
<ProcessCode>Ignore</ProcessCode>
</AttributeMap>
<AttributeMap>
<SourceAttributeName>Preferred Method of Contact</SourceAttributeName>
<TargetAttributeName>preferredcontactmethodcode</TargetAttributeName>
<ProcessCode>Process</ProcessCode>
<PicklistMaps>
<PicklistMap>
<SourceValue>Email</SourceValue>
<TargetValue>6</TargetValue>
<ProcessCode>Process</ProcessCode>
</PicklistMap>
</PicklistMaps>
</AttributeMap>
</AttributeMaps>
</EntityMap>
<EntityMaps>
</Map>
|
Contains mappings of columns in source data to attributes in Microsoft Dynamics CRM for the source file mapped in the current EntityMap.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
EntityMap |
AttributeMap |
Maps one column in source data to one attribute in Microsoft Dynamics CRM.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per column |
AttributeMaps |
SourceAttributeName TargetAttributeName ProcessCode PicklistMaps LookupMaps |
The column heading used in the source file.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
AttributeMap |
None |
Specifies the name The name that is used in the Microsoft Dynamics CRM database schema. To identify schema names for record types and attributes, use the Customization area of Microsoft Dynamics CRM. of the attribute in Microsoft Dynamics CRM.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
AttributeMap |
None |
|
Specifies whether to ignore or migrate data in this element.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
EntityMap AttributeMap LookupMap PicklistMap TransformationMap |
None |
|
The root node for the data map file. The following table shows the parameters for the Map element. Required parameters are marked with an asterisk (*).
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
None |
Description UserIdentifier EntityMaps |
Parameter Name |
Description |
Type |
---|---|---|
Name* |
Name of this data map used to identify the data map in the Import Data Wizard user interface. |
String |
Source |
The customer relationship management system from which you are importing data. This value is used to identify the source of the data in the Import Data Wizard user interface. If it is blank, you will not be able to select this data map on the Select Data Map page. |
String |
Description of the data map.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
Map |
None |
|
Contains mappings of drop-down list values in the source data to values in the Microsoft Dynamics CRM list specified in the current AttributeMap.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per drop-down list (Picklist) |
AttributeMap |
PicklistMap |
Maps one drop-down list value in the source data to one value in the corresponding Microsoft Dynamics CRM list.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per list value |
PicklistMaps |
SourceValue TargetValue ProcessCode |
One list value from the source file.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
PicklistMap |
None |
One list value from Microsoft Dynamics CRM.
This value must be a valid picklist integer for the Microsoft Dynamics CRM drop-down list attribute specified in the <AttributeMap>. To determine the integer, do one of the following:
If the value of the <ProcessCode> element for this <PicklistMap> is Process, this element is required.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
PicklistMap |
None |
|
Contains source file to Microsoft Dynamics CRM entity mappings.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
Map |
EntityMap |
Contains all attribute and transformation mappings for a single source file. The following table shows the parameters for the EntityMap element. Required parameters are marked with an asterisk (*).
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per source file |
EntityMap |
AttributeMaps TransformationMaps |
Parameter Name |
Description |
Type |
---|---|---|
TargetEntityName* |
A Microsoft Dynamics CRM entity name. This must be the name of the entity, and not the display name. For example, if you are migrating Case records, you must use incident rather than Case. |
String |
SourceEntityName* |
The entity name for one source file. This is typically the file name of the source file. |
String |
|
Contains mappings to resolve references when a source record is related to another record either in another source file or in Microsoft Dynamics CRM.
How Relationship (Lookup) Attributes Are Migrated
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per reference attribute |
AttributeMap OutputParameterMap |
LookupMap |
Maps one column in source data to either another column in a different source file or to a Microsoft Dynamics CRM attribute to resolve a reference to a related record.
How Relationship (Lookup) Attributes Are Migrated
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per type of entity that lookup can refer to |
LookupMaps |
LookupType LookupEntityName LookupAttributeName ProcessCode |
Specifies whether to look up the reference in another source file or in Microsoft Dynamics CRM.
Valid values:
If the data you are referring to can be found in either the source file or Microsoft Dynamics CRM, use two LookupMap elements.
How Relationship (Lookup) Attributes Are Migrated
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One or two. If two occurrences, one must be set to Source and one to System. |
LookupMap |
None |
Name of the entity in either source or Microsoft Dynamics CRM data where this lookup should be resolved. In source data, this must be the file name. In Microsoft Dynamics CRM data, this must be the name of the entity, not the display name.
If <ProcessCode> is set to Process, this element is required.
How Relationship (Lookup) Attributes Are Migrated
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
LookupMap |
None |
Name of the attribute in either source or Microsoft Dynamics CRM data where this lookup should be resolved.
The attribute should be one that provides a unique value, as a record will fail to migrate if a lookup can't be resolved to a single record.
How Relationship (Lookup) Attributes Are Migrated
If ProcessCode = Process, this element is required.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
LookupMap |
None |
|
Column to use to identify a user in the source user file.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
Map |
SourceUserIdentifierForSourceDataSourceUserLink SourceUserIdentifierForSourceCRMUserLink TargetUserIdentifierForSourceCRMUserLink |
SourceUserIdentifierForSourceDataSourceUserLink
Column in the source files for other record types that reference a user.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
UserIdentifier |
None |
SourceUserIdentifierForSourceCRMUserLink
Column in the user source file that is the unique identifier for a user. This column will map to a value in the Microsoft Dynamics CRM User entity.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
UserIdentifier |
None |
TargetUserIdentifierForSourceCRMUserLink
Microsoft Dynamics CRM attribute that the <SourceUserIdentifierForSourceDataSourceUserLink> maps to.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
UserIdentifier |
None |
|
For required order of parameters and samples, see Transformation Reference.
Contains maps for any transformations required for the source file.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
Map |
TransformationMap |
Contains information about the type of transformation, and the input and output parameters for one transformation.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per transformation |
TransformationMaps |
TransformationTypeName ProcessCode InputParameterMaps OutputParameterMaps |
Type of transformation. Must be one of:
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
TransformationMap |
None |
Contains mappings for input parameters for a transformation.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
TransformationMap |
InputParameterMap |
Contains mappings for one input parameter for a transformation.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
InputParameterMaps |
SingletonInputParameterMaps ArrayInputParameterMaps |
Contains mappings for any input parameters that are single value parameters.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
InputParameterMap |
SingletonInputParameterMap |
Contains mappings for one input parameter for a transformation for a parameter that is a single value.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per single-value input parameter |
SingletonInputParameterMaps |
ParameterSequence DataTypeCode Data |
Contains mappings for any input parameters that require multiple values.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
InputParameterMap |
SingletonInputParameterMap |
Contains mappings for one input parameter for a transformation for a parameter that requires multiple values.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per multiple-value input parameter |
ArrayInputParameterMaps |
ParameterSequence Items |
Contains mappings for all items in an array input parameter.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per array input parameter |
ArrayInputParameterMap |
Item |
Contains mappings for all items in an array input parameter.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per array input parameter |
Items |
ParameterArrayIndex DataTypeCode Data |
Sequence in the array.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per array item |
Item |
DataTypeCode Data |
Contains mappings for output parameters for a transformation.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
TransformationMap |
OutputParameterMap |
Contains mappings for one output parameter for a transformation.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One per output parameter |
OutputParameterMaps |
ParameterSequence Data LookupMaps |
Specifies the order of the input or output parameters. Must be an integer. To see the order of parameters required for each transformation type, see Transformation Reference.
The parameters are not referred to in the data map by name. Instead, the value of the ParameterSequence determines which parameter is being used.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
OutputParameterMap |
None |
Specifies whether the data used as an input parameter for a transformation is a fixed string, or a reference to another column in the same source file.
Valid values:
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
SingletonInputParameterMap ParameterArrayIndex |
None |
Microsoft Dynamics CRM attribute in which to put the output data.
Number of occurrences |
Parent element |
Child elements |
---|---|---|
One |
OutputParameterMap SingletonInputParameterMap ParameterArrayIndex |
None |
|
Related Topics |