I am using Dynamics 365 on-premises 8.2.2.112.
I have a managed solution that includes a modified version of the default site map. The modified site map contains all five default areas unchanged (Sales, Service, Marketing, Settings, Training) and also three new custom areas. When I import that solution to another organization, I have observed the following behavior.
- Modifications made in the target organization on the five default areas are not affected (this is good)
- Custom areas made in the target organization are not affected (this is good)
- The positions of the new areas after the import appears random (this is bad)
Here's the case: In my source organization I have the following areas in the following order:
New Area 1 (NA1), New Area 2 (NA2), New Area 3 (NA3), Sales (SAL), Service (SER), Marketing (MAR), Settings (SET), Training (TRA)
In the target organization I have the following areas in the following order:
Custom Area (CUS), SAL, SET, SER, MAR, TRA
After I import the solution that contains the sitemap, I get the following areas in the following order:
CUS, NA1, SAL, NA2, SET, NA3, SER, MAR, TRA
What I would want is that the new areas contained in the solution would be in the beginning, so the result should look like this:
NA1, NA2, NA3, CUS, SAL, SET, SER, MAR, TRA
Does anyone have any idea how I could affect the order of the areas after the import? Also, I would very much like to know how the order is determined.
As a curiosity, I experimented on what would happen if the site map contained in the solution would have only the new areas and none of the five default areas. After the import it appeared that all the default areas that were not modified disappeared, but all modified default areas remained unchanged.
Is there any factual information available on what exactly happens to the default site map when a new one is imported? What is the exact logic it uses to determine should something be overridden, ignored or merged with existing elements?
Are there any better ways to achieve what I'm trying to do? I am under the impression that switching between Apps is rather inconvenient in on-premises environments at the moment, so I don't think an App is the way to go here.
*This post is locked for comments