{
ExportSolutionRequest exportRequest = new ExportSolutionRequest
{
SolutionName = solutionUniqueName,
Managed = true,
//ExportAutoNumberingSettings = true,
//ExportCalendarSettings = true,
//ExportCustomizationSettings = true,
//ExportEmailTrackingSettings = true,
//ExportExternalApplications = true,
//ExportGeneralSettings = true,
//ExportMarketingSettings = true,
//ExportOutlookSynchronizationSettings = true,
//ExportRelationshipRoles = true,
//ExportSales = true
};
ExportSolutionResponse exportResponse = (ExportSolutionResponse)service.Execute(exportRequest);
byte[] exportXml = exportResponse.ExportSolutionFile;
return exportXml;
}
Managed = false
. However, I encounter an error when attempting to export managed solutions with Managed = true
. The error message is:- Is there a way to programmatically export managed solutions from Dynamics 365?
- Are there any workarounds or best practices for exporting managed solutions.