This documentation is archived and is not being maintained.

Other Nodes Available for Import and Export

Forefront
banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

The import, export, and publish methods enable you to specify the entities as defined in the Import/Export/Publish request schema.

Example

<importexportxml>
   <entities>
      <entity>account</entity>
      <entity>contact</entity>
   </entities>
   <nodes/>
   <securityroles/>
   <settings/>
   <workflows/>
</importexportxml>";

The following nodes within the parameter XML are required. However, they can be empty as shown above.

Name in customization fileDescription
<entities>The entities to include in the import or export.
<nodes>The other nodes to include in the import or export. For more information, see Other Nodes Available for Import and Export.
<securityroles>The security roles to include in the import or export. The system administrator role is not exported.
<settings>The settings to include in the import or export.
<workflows>The workflows to include in the import or export.

The nodes element can contain the following information.

Name in customization fileDescription
<EntityMaps>Entity maps.
<EntityRelationships>Entity relationships.
<IsvConfig>Configuration file for navigation pane, toolbar and menus.
<Languages>Installed languages.
<OrganizationSettings><autoNumbering>Auto-numbering settings.
<OrganizationSettings><calendar>Calendar settings.
<OrganizationSettings><customization>Customization settings.
<OrganizationSettings><email>E-mail tracking settings.
<OrganizationSettings><general>General settings.
<OrganizationSettings><marketing>Marketing settings.
<OrganizationSettings><outlookSynchronization>Outlook Synchronization settings.
<RelationshipRoles>Relationship roles.
<SiteMap>Application navigation structure.
<Templates><ContractTemplates>Contract templates.
<Templates><EmailTemplates>E-mail templates.
<Templates><KBArticleTemplates>Knowledge base article templates.

Example

The following code shows how to set up the export request

// Set up the CRM Service.
CrmAuthenticationToken token = new CrmAuthenticationToken();
// You can use enums.cs from the SDK\Helpers folder to get the enumeration for AD Authentication.
token.AuthenticationType = 0; 
token.OrganizationName = "AdventureWorksCycle";
 
CrmService service = new CrmService();
service.Url = "http://<servername>:<port>/mscrmservices/2007/crmservice.asmx";
service.CrmAuthenticationTokenValue = token;
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the request.
ExportXmlRequest exportRequest = new ExportXmlRequest();

// Define the nodes to retrieve, the site map and the isv configuration.
exportRequest.ParameterXml = 
      @"<importexportxml>
        <entities></entities>
        <nodes>
           <node>sitemap</node>
           <node>isvconfig</node>
        </nodes>
        <securityroles></securityroles>
        <settings></settings>
        <workflows></workflows>
      </importexportxml>";

// Execute the request.
ExportXmlResponse entities = (ExportXmlResponse)service.Execute(exportRequest);


Base Language

The base language for the system can be found in the customization file.

<ImportExportXml version="4.0.0.0" languagecode="1033" generatedBy="OnPremise">

Modification of these attributes is not supported.

See Also

Reference

Concepts


© 2010 Microsoft Corporation. All rights reserved.


Show: