Friday, November 9, 2018

Quick Tricks

Merge multiple solutions into one
Steps:
-Create the solution which should contain the merged set of components.
-Considering and example - where i have "solution1", "solution2" and "solution3" as the schema names of the solutions to merge into one destination solution - "solutionfinal"
-Export "solution2", unzip,open the Solution Xml and update the UniqueName property from "solution2" to "solution1".
Zip the updated solution xml with rest of the export file components.
Import the above file back to CRM.
This would merge the components of the solution2 into solution1.
The Display name of solution1 would have now changed to that of solution2, update it back as needed.

Export "solution3", unzip,open the Solution Xml and update the UniqueName property from "solution3" to "solution1".
Zip the updated solution xml with rest of the export file components.
Import the above file back to CRM.
This would merge the components of the solution3 into solution1.
The Display name of solution1 would have now changed to that of solution3, update it back as needed.

You'are done!

The approach leverages the fact that the solution Components are additive upon Import.