Read importjob.data to get results of the import

Jan 30, 2015 at 8:53 AM
In the importjob entity there is the data attribute, which contains some information about the result of the import.
Can be "success" or "failure", and there is also an "errortext" to investigate.

Sample code:
XmlDocument doc = new XmlDocument();
doc.LoadXml(importjob.data);
name = doc.SelectSingleNode("//solutionManifest/UniqueName").InnerText;
result = doc.SelectSingleNode("//solutionManifest/result/@result").Value;
err = doc.SelectSingleNode("//solutionManifest/result/@errortext").Value;