This documentation is archived and is not being maintained.

Retrieving Import Job Data

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

To view the results of the import, retrieve the import job entity instance by using the importjob.importjobid property that you supplied in the import request as a key. The following example shows how to retrieve the import job entity instance and the content of the property.


// Retrieve the results of the import.
// Be aware that using AllColumns may adversely affect
// performance and cause unwanted cascading in subsequent 
// updates. A best practice is to retrieve the least amount of 
// data required.
importjob job = (importjob)service.Retrieve(EntityName.importjob.ToString(), request.ImportJobId, new AllColumns());
XmlDocument data = new XmlDocument();

// See whether the result of the first entity was successful.
XmlNode node = data.SelectSingleNode("importexportxml/entities/entity/@result");
if (node.Value != "success")
    success = false;

See Also

Other Resources

© 2010 Microsoft Corporation. All rights reserved.