I thought Iâ€™d make not of this topic ( which is found in the CRM 2011 SDK ) because when you attempt to export the Default Solution, it seems to â€œwantâ€? to perform the export, but never does â€“ AND it never gives you an error.
So, if you want to modify the SiteMap, follow these instructions.
Editing the SiteMap
To edit the SiteMap
In the Navigation Pane, click Settings, click Customization, and then click Solutions.
Choose one of the following:
- Export the Default solution.
- Add the SiteMap to a new or existing solution:
- In the solution, select Components and then Add Existing and then select Site Map
- Export the solution as an unmanaged solution.
Extract the files from the compressed .zip file.
Keep the compressed .zip file as your backup.
In the customizations.xml file, locate the SiteMap node (located at ImportExportXml/SiteMap/SiteMap).
Edit the SiteMap node.
Editing XML is much easier if you use an editor that provides schema validation. See Editing with schema validation for more information.
Create a new compressed zip file using all the extracted solution files including your edited customizations.xml.
In Windows explorer, select all the files, then right-click and select Send To and Compressed (zipped) folder.
Import the new solutions file.
- In the Microsoft Dynamics CRM application Navigation Pane, click Settings, click Customization, and then click Solutions.
- Click Import.
- Click Browse, locate your modified solutions .zip file, click Next and then click Import.
- When the import completes, click Close to close the Import Solutions dialog.
Editing with schema validation
XML files are simply text so you can edit them with Notepad. But it is much easier and you are less prone to make errors if you use an application that provides schema validation. Free applications you can download and install such as Visual Web Developer 2010 Express or XML Notepad 2007 can be associated with the CustomizationsSolution.xsd file located in the SDK\Schemas folder in the SDK download package. When associated with the schema, the XML editing application will provide IntelliSense to guide you about valid XML elements and attributes.
To use schema validation with Visual Web Developer 2010 Express
Open Microsoft Visual Web Developer 2010 Express and from the File menu, select Open File….
In the Open File dialog, select the customizations.xml file and click Open.
In the View menu, select Other Windows and then select Properties Window.
In the Properties area, select the Schemas box and click the [â€¦] button.
In the XML Schemas dialog, click Addâ€¦ and in the Open XSD schemas dialog navigate to the [SDK install location]SDK\Schemas\CustomizationsSolution.xsd file and click Open to select the file..
Click OK to close the XML Schemas dialog.
Now when you edit the SiteMap you will have IntelliSense and guidance about how to use the SiteMap elements and attributes.
Recovering From Errors
The import tool performs validations on the SiteMap. However, it is still possible that some errors might occur.
If errors occur, the default SiteMap will be applied and an error message will be displayed. You must fix the errors in the SiteMap and import it again.