How to programmatically enable Post Import Actions during importing a solution? RRS feed

  • Question

  • I've been developing a tool to automate importing a solution programmatically as part of build automation, although I can't find a way to specify that the Post Import Action (Activate any processes and enable any sdk message processing steps included in the solution) will be performed. How can I specify that in the code? Thanks in advance!

    Here is the code that I'm using for importing a solution (from the sdk)

         byte[] fileBytesWithMonitoring = File.ReadAllBytes(solutionName);

         ImportSolutionRequest impSolReqWithMonitoring = new ImportSolutionRequest()
             CustomizationFile = fileBytesWithMonitoring,
             ImportJobId = Guid.NewGuid()

         ImportJob job = (ImportJob)organizationProxy.Retrieve(ImportJob.EntityLogicalName, impSolReqWithMonitoring.ImportJobId, new ColumnSet(new System.String[] { "data", "solutionname" }));

    Tuesday, March 27, 2012 8:44 AM


All replies