Adding Subareas to the SiteMap

When adding (or changing) subareas to the sitemap of CRM, you must make sure that you don't use the same ID for a subarea in the same area (even if the subareas are in different groups).
For example:

<Area Id="Workplace" ResourceId="Area_Workplace" ShowGroups="true" Icon="/_imgs/workplace_24x24.gif" DescriptionResourceId="Workplace_Description">
<Group Id="Customers" ResourceId="Group_Customers" DescriptionResourceId="Customers_Description">
<SubArea Id="nav_accts" Entity="account" />
<SubArea Id="nav_conts" Entity="contact" />
<SubArea Id="nav_leads" Entity="lead" />
</Group>
<Group Id="SFA" ResourceId="Area_Sales" IsProfile="true" DescriptionResourceId="Sales_Description">
<SubArea Id="nav_leads1" Entity="lead" />
<SubArea Id="nav_oppts" Entity="opportunity" />
<SubArea Id="nav_quotes" Entity="quote" />
</Group>
</Area>


In the example you can see that I use Id="nav_leads" for the Customers group and Id="nav_leads1" for the SFA group. This way I am able to show the leads link in both groups.

When you want to show the leads link in 2 different areas, you can reuse the id.
For example:

<Area Id="Workplace" ResourceId="Area_Workplace" ShowGroups="true" Icon="/_imgs/workplace_24x24.gif" DescriptionResourceId="Workplace_Description">
<Group Id="Customers" ResourceId="Group_Customers" DescriptionResourceId="Customers_Description">
<SubArea Id="nav_accts" Entity="account" />
<SubArea Id="nav_conts" Entity="contact" />
<SubArea Id="nav_leads" Entity="lead" />
</Group>
</Area>
<Area Id="SFA" ResourceId="Area_Sales" Icon="/_imgs/sales_24x24.gif" DescriptionResourceId="Sales_Description">
<Group Id="SFA">
<SubArea Id="nav_leads" Entity="lead" />
<SubArea Id="nav_oppts" Entity="opportunity" />
<SubArea Id="nav_quotes" Entity="quote" />
</Group>
</Area>


You can see that I use the Id="nav_leads" in 2 different areas.

Kevin Dosseray

Comments

Popular posts from this blog

Scribe and Excel Data Ranges

Scribe MVP!