ParseImport Message (CrmService)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Works for all deployment types Works online and offline

Submits an asynchronous job that parses all import files associated with the specified data import (import).

The relevant classes are specified in the following table.

Type Class
Request ParseImportRequest
Response ParseImportResponse
Entity import
Optional Parameters RequestIdOptionalParameter

Remarks

To use this message, pass an instance of the ParseImportRequest 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. The unique identifier of the asynchronous job that runs in the background and performs data parsing is returned in the AsyncOperationId parameter of the message response.

Example

The following code example shows how to use the ParseImport 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 Active Directory 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 ParseImport request.
ParseImportRequest request = new ParseImportRequest();

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

// Execute the request.
ParseImportResponse response = (ParseImportResponse) 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 ParseImport request.
Dim request As New ParseImportRequest()

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

' Execute the request.
service.Execute(request)

See Also

Concepts

Reference

© 2010 Microsoft Corporation. All rights reserved.