Export (0) Print
Expand All
Expand Minimize

TransformImport Message (CrmService)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Works for all deployment typesWorks online and offline

Submits an asynchronous job that transforms the parsed data.

The relevant classes are specified in the following table.

TypeClass
RequestTransformImportRequest
ResponseTransformImportResponse
Entityimport
Optional ParametersRequestIdOptionalParameter

Remarks

To use this message, pass an instance of the TransformImportRequest class as the request parameter in the Execute method.

Pass a unique identifier of associated data import (import) in the ImportId property of the request. A unique identifier of the asynchronous job that runs in the background and performs the transformation is returned in the AsyncOperationId property of the message response.

Note    You must install Data Migration Manager before using this message. For more information, see Installing Data Migration Manager.

Example

The following code example shows how to use the TransformImport message.

[C#]
// 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 a TransformImport request.
TransformImportRequest request = new TransformImportRequest();

// Assign the request the ID of the import to be transformed.
request.ImportId = new Guid("1DCDEE97-35BB-44BE-8353-58BC36592656");

// Execute the request.
TransformImportResponse response = (TransformImportResponse)service.Execute(request);
[Visual Basic .NET]
' Set up the CRM service.
Dim token As New CrmAuthenticationToken()
' You can use enums.cs from the SDK\Helpers folder to get the enumeration for Active Directory authentication.
token.AuthenticationType = 0
token.OrganizationName = "AdventureWorksCycle";
 
Dim service As New CrmService()
service.Url = "http://<servername>:<port>/mscrmservices/2007/crmservice.asmx";
service.CrmAuthenticationTokenValue = token;
service.Credentials = System.Net.CredentialCache.DefaultCredentials

' Create a TransformImport request.
Dim request As New TransformImportRequest()

' Assign the request the ID of the import to be transformed.
request.ImportId = New Guid("1DCDEE97-35BB-44BE-8353-58BC36592656")

' Execute the request.
Dim response As TransformImportResponse = CType(service.Execute(request), TransformImportResponse)

See Also

Concepts

Reference


© 2010 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft