If you’ve ever created a custom Entity within CRM you’ve had to make a decision about where this new Entity should be shown using the following checkboxes found at the bottom of the Information screen:
I was replying to a question on one of the CRM Forums where the poster wanted to know where this information was stored. This turned out to be an excellent question, the answer to which is not readily apparent.
It turns out that there are not actually fields in the database that contain this information. When you make a change to the display areas and save the Entity, it actually rewrites the XML that is used to display the SiteMap.
That means you can’t just turn these settings on or off programmatically.
You can, however, read this information by using the CRM SDK to query the Organization Entity and retrieving the SiteMapXml property.
Just look for instances where the Entity in question is referenced.
While the SDK clearly states that this field can be written to, I would strongly advise against it unless you have an excellent backup and really know what you’re doing.






