Import using the crm sdk with failure/success indication (crm4)

Answered Import using the crm sdk with failure/success indication (crm4)

  • Thursday, September 25, 2008 8:08 AM
     
     

    Hi,

    I am using the crm sdk and i need to export all customizations to an xml file and then import them using the crm sdk from another computer.

     

    In the export part i have no problems: i can use the classes ExportAllXml or the ExportCompressedAllXml.

     

    That way i get an xml or a zip with all the customizations.

    No problems so far.

     

    Now i need to import all the customizations: I saw the classes ImportAllXml and ImportCompressedAllXml and ImportCompressedXmlWithProgress

     

    I need to perform the import which seems simple but i need to get an indication if the import suceeded or not (and hopefully to know why the import failed(on which entity)).

     

    How can i get this indication? i saw that with the ImportCompressedXmlWithProgress i can get an indication using the importjob entity, but the ImportCompressedXmlWithProgressRequest requires i give it a ParameterXml with the entities to import. I want it to import ALL entities.

     

    What  would you recommend? To summarize, Do you have any solution that will import all customizations and will give an indication of success/failure (preferably with info about why it failed(on which entity)?

     

    Thanks

     

    Aaron

     

     

     

All Replies

  • Monday, September 29, 2008 4:45 AM
     
     
    anyone??
  • Tuesday, October 14, 2008 10:48 PM
     
     
    is there no way to do it?
  • Wednesday, October 15, 2008 7:15 AM
    Moderator
     
     Answered
    The only way I can see to do this would be to repeatedly call ImportCompressedXmlWithProgress, specifying each entity at a time in the ParameterXml. It should be possible to use the Xml classes to identify each entity in the source xml and loop through them

     

  • Saturday, November 01, 2008 10:46 AM
     
     
    how come microsoft doesn't make an

    ImportCompressedAllXmlWithProgress  message?