Export (0) Print
Expand All

SiteMap Schema

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

The following is the schema definition for the SiteMap portion of an import/export customization file. It is included from the customization file schema. For more information see Import, Export and Publish Customizations.

In the on premise version of Microsoft Dynamics CRM this XSD file can be found at <installation directory>\_root\SiteMapType.xsd.

<?xml version="1.0"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:simpleType name="LCIDType_SiteMap">
    <xs:restriction base="xs:decimal">
      <xs:fractionDigits value="0" fixed="true" />
      <xs:totalDigits value="4" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="TitlesType_SiteMap">
    <xs:sequence>
      <xs:element name="Title" minOccurs="1" maxOccurs="unbounded">
        <xs:complexType>
          <xs:attribute name="LCID" type="LCIDType_SiteMap" use="required" />
          <xs:attribute name="Title" type="xs:string" use="required" />
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="DescriptionsType_SiteMap">
    <xs:sequence>
      <xs:element name="Description" minOccurs="1" maxOccurs="unbounded">
        <xs:complexType>
          <xs:attribute name="LCID" type="LCIDType_SiteMap" use="required" />
          <xs:attribute name="Description" type="xs:string" use="required" />
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name ="SiteMapType">
    <xs:sequence>
      <xs:element name="Area" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Titles" type="TitlesType_SiteMap" minOccurs="0" maxOccurs="1" />
            <xs:element name="Descriptions" type="DescriptionsType_SiteMap" minOccurs="0" maxOccurs="1" />
            <xs:element name="Group" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Titles" type="TitlesType_SiteMap" minOccurs="0" maxOccurs="1" />
                  <xs:element name="Descriptions" type="DescriptionsType_SiteMap" minOccurs="0" maxOccurs="1" />
                  <xs:element name="SubArea" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Titles" type="TitlesType_SiteMap" minOccurs="0" maxOccurs="1" />
                        <xs:element name="Descriptions" type="DescriptionsType_SiteMap" minOccurs="0" maxOccurs="1" />
                        <xs:element name="Privilege" minOccurs="0" maxOccurs="unbounded">
                          <xs:complexType>
                            <xs:attribute name="Entity" type="xs:string" />
                            <xs:attribute name="Privilege" type="CRM_PrivilegeId_SiteMap" />
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                      <xs:attribute name="Id" type="CRM_Identifier_SiteMap" use="required" />
                      <xs:attribute name="Title" type="xs:string" />
                      <xs:attribute name="ResourceId" type="xs:string" />
                      <xs:attribute name="Icon" type="xs:string" />
                      <xs:attribute name="OutlookShortcutIcon" type="xs:string" />
                      <xs:attribute name="Url" type="xs:string" />
                      <xs:attribute name="PassParams" type="xs:boolean" use="optional" />
                      <xs:attribute name="Client" type="CRM_Client_SiteMap" />
                      <xs:attribute name="AvailableOffline" type="xs:boolean" />
                      <xs:attribute name="License" type="CRM_License_SiteMap" />
                      <xs:attribute name="Entity" type="xs:string" />
                      <xs:attribute name="Description" type="xs:string" />
                      <xs:attribute name="DescriptionResourceId" type="xs:string" />
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="Id" type="CRM_Identifier_SiteMap" use="required" />
                <xs:attribute name="Title" type="xs:string" />
                <xs:attribute name="Icon" type="xs:string" />
                <xs:attribute name="Url" type="xs:string" />
                <xs:attribute name="ResourceId" type="xs:string" />
                <xs:attribute name="IsProfile" type="xs:boolean" />
                <xs:attribute name="License" type="CRM_License_SiteMap" />
                <xs:attribute name="Description" type="xs:string" />
                <xs:attribute name="DescriptionResourceId" type="xs:string" />
              </xs:complexType>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="Id" type="CRM_Identifier_SiteMap" use="required" />
          <xs:attribute name="Title" type="xs:string" />
          <xs:attribute name="ResourceId" type="xs:string" />
          <xs:attribute name="Icon" type="xs:string" />
          <xs:attribute name="Url" type="xs:string" />
          <xs:attribute name="ShowGroups" type="xs:boolean" />
          <xs:attribute name="License" type="CRM_License_SiteMap" />
          <xs:attribute name="Description" type="xs:string" />
          <xs:attribute name="DescriptionResourceId" type="xs:string" />
        </xs:complexType>
        <xs:unique name="GroupIdMustBeUnique">
          <xs:selector xpath="Group" />
          <xs:field xpath="@Id" />
        </xs:unique>
        <xs:unique name="SubAreaIdMustBeUnique">
          <xs:selector xpath="Group/SubArea" />
          <xs:field xpath="@Id" />
        </xs:unique>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="Url" type="xs:string" />
  </xs:complexType>
  <xs:simpleType name="CRM_Identifier_SiteMap">
    <xs:restriction base="xs:string">
      <xs:pattern value="[a-zA-Z0-9_]+" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CRM_Client_SiteMap">
    <xs:restriction base="xs:string">
      <xs:pattern value="((Outlook|Web|All|OutlookWorkstationClient|OutlookLaptopClient),?)+" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CRM_License_SiteMap">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="CRM_PrivilegeId_SiteMap">
    <xs:restriction base="xs:string">
      <xs:pattern value="((Read|Write|Append|AppendTo|Create|Delete|Share|Assign|All|AllowQuickCampaign),?)+" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

© 2010 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft