Compartir a través de


Ribbons available in Microsoft Dynamics CRM 2013

 

Applies To: Dynamics CRM 2013

This topic describes where ribbons are defined and modified in Microsoft Dynamics CRM 2013 and Microsoft Dynamics CRM Online.

In This Topic

Ribbon definitions

Entity ribbons

Basic home tab

Microsoft Dynamics CRM for Microsoft Office Outlook ribbons

Other ribbons

Ribbons for custom pages

Ribbon definitions

Microsoft Dynamics CRM contains default <RibbonDiffXml> (RibbonDiffXml) definitions for all ribbons in the application. You can export and view the current XML defining the ribbon for your organization, but you cannot update the XML directly. You customize the ribbon by defining how you want it to be changed. The change definitions that you specify are applied at runtime when the ribbon is displayed in the application. All of your changes will be in the <CustomAction> (RibbonDiffXml) or <HideCustomAction> (RibbonDiffXml) elements. These elements are applied over the default ribbon definitions provided by Microsoft Dynamics CRM 2013 and Microsoft Dynamics CRM Online.

When you write your change definitions, you will frequently need to reference the definitions of the default ribbons. For example, if you want to hide a specific ribbon element, you will need to know the unique Id of that element. If you want to position a new ribbon element within or next to an existing ribbon element, you will need to know the Id values for those elements, as well as the sequence order that will control the relative position of the elements.

Because of this requirement to reference the definitions of existing ribbon elements, it is very important to understand the current ribbon definitions in your organization. There are two messages you can use to export XML files representing the current state of your ribbons. These definitions include any customizations that have already been applied to your system so that you can customize any custom ribbons that were previously applied. For more information, see Export ribbon definitions.

To help you get started, the definitions of the default ribbon definitions are included in the downloadable files in the Microsoft Dynamics CRM SDK. The SDK\Resources\ExportedRibbonXml folder includes the output files you would have for an organization with a ribbon that has not been customized. You don’t need to run the sample application to export this data. If you have a customized ribbon, you should run the sample application to refresh the files in this folder with any customizations previously applied for your organization.

Within the exported ribbon XML files, the applicationRibbon.xml file includes all the ribbons that are not defined for a specific entity. These correspond to the Application Ribbons solution component. For each entity, you will find an entity nameribbon.xml file. This corresponds to the RibbonDiffXml that is included in each entity. If you want to edit the ribbon for a specific entity, you should locate the ribbon XML file for that entity.

Entity ribbons

All entities use a common ribbon definition called the Entity Ribbon Template. The entity ribbon template definition is located in the applicationribbon.xml file. When you create a custom entity, the ribbon you see is the default ribbon defined by the entity ribbon template. Each system entity has a separate <RibbonDiffXml> (RibbonDiffXml) definition that builds upon the entity ribbon template definition.

Within the applicationribbon.xml file, you can see the following tabs that apply to all entities:

  • Mscrm.Form.{!EntityLogicalName}.MainTab

    Tab displays the entity display name in the label.

  • Mscrm.Form.{!EntityLogicalName}.Related

    Tab has the label Add.

  • Mscrm.Form.{!EntityLogicalName}.Developer

    Tab has the label Customize.

  • Mscrm.HomepageGrid.{!EntityLogicalName}.MainTab

    Tab displays the plural entity display name in the label.

  • Mscrm.HomepageGrid.{!EntityLogicalName}.View

    Tab has the label View.

  • Mscrm.HomepageGrid.{!EntityLogicalName}.Related

    Tab has the label Add.

  • Mscrm.HomepageGrid.{!EntityLogicalName}.Developer

    Tab has the label Customize.

  • Mscrm.SubGrid.{!EntityLogicalName}.ContextualTabs

    When a sub grid in a form or chart has focus, the contextual tab appears with the label List Tools.

    • Mscrm.SubGrid.{!EntityLogicalName}.MainTab

      Tab displays the plural entity display name.

When you view the ribbon definitions for a specific entity, you will see that the name of the entity usually replaces the {!EntityLogicalName} token. When you see the {!EntityLogicalName} token in the ribbon definition for a specific entity, that means there is no specific definition for that entity and it simply uses the definition from the entity ribbon template. When you define ribbons for a specific entity, always use the actual entity name. Ribbon modifications for a specific entity must be defined in the //ImportExportXml/Entities/Entity/RibbonDiffXml node.

You can make changes that apply to all entities by defining the changes to the application ribbons substituting the token {!EntityLogicalName} in place of an entity logical name in your RibbonDiffXml node. Changes to application ribbons that are defined for all entities must be defined in the ImportExportXml/RibbonDiffXml node. They cannot be defined in the RibbonDiffXml node for a specific entity.

Grid ribbons

The entity grid ribbon is a collection of tabs that have an Id attribute value beginning with Mscrm.HomepageGrid.<entity logical name>. For example, the tab with the text "Accounts" on an account entity grid is Mscrm.HomepageGrid.account.MainTab. All the tabs displayed on the account entity grid will have an Id value that begins with Mscrm.HomepageGrid.account.

Subgrid ribbons

The entity subgrid ribbon is a contextual group with a collection of tabs that have an Id attribute value beginning with Mscrm.SubGrid.<entity logical name>. For example, the tab with the text "Accounts" on account entity sub grid is Mscrm.SubGrid.account.MainTab.

When a list of records for an entity is displayed within a sub grid on the form of another entity or in a chart, there will be only three controls available directly above or within the subgrid. The behaviors for these controls can be modified by changing the commands that they are associated with.

  • Add The default behavior of the command with the Add button on sub-grid icon depends on whether the records in the subgrid are related to the current record.

    If the records are related to the current record, the default behavior is look for existing records. If an existing record cannot be found, or if the user simply wants to create a new record, they can click Add New.

    If the records are not related to the current record, the default behavior is to add a new record. If the entity has a Quick Create form this will be displayed, otherwise a new full form will be shown.

    Activities are the exception to this pattern. The add command will always prompt for the type of activity first.

  • Show List The command with the Open view button icon will open the full list where all available commands can be used.

    If the subgrid is associated with the current record, the default behavior of this command is to open the associated view.

    If the subgrid is not associated with the current record, the default behavior of this command is to open the view in the main list view.

  • Delete The Sub-grid delete icon icon is shown on the right side of the row when people hover over the records in the list.

    For records with a 1:N relationship or no relationship, the default behavior is to delete the record. The delete may be blocked if it is not allowed due to relationship configurations. Open activities and invoices are common examples of records that may not be deleted due to relationship configurations.

    For relationships displaying N:N relationships the default behavior is to remove the relationship joining the records rather than the record itself.

You can change the default behavior by changing the actions associated with the command using <CustomAction> (RibbonDiffXml), but you cannot change the name of the command. For example, you could change the delete action so that it deactivates the record rather than deleting it.

It is not possible to change the icons displayed for these commands. You can hide these commands by using <HideCustomAction> (RibbonDiffXml).

Form ribbons

Each entity can have multiple forms. You can define changes to the form ribbon for all forms for that entity by adding your definition at the entity level (//ImportExportXml/Entities/Entity/RibbonDiffXml).

Each entity form can have a specific ribbon definition. In the exported customizations.xml file, you must add your modified <RibbonDiffXml> (FormXml) to this location://ImportExportXml/Entities/Entity/FormXml/forms/systemform/form/RibbonDiffXml.

The entity form ribbon is a collection of tabs that have an Id attribute value beginning with Mscrm.Form.<entity logical name>. For example, the tab with the label Account on account entity form is Mscrm.Form.account.MainTab. All the tabs displayed on the account entity form will have an Id value that begins with Mscrm.Form.account.

Basic home tab

The basic home tab is displayed on the main application ribbon whenever an alternative tab is not defined because of entity context or a display rule that suppresses it for specific pages. For example, this tab is displayed when you view the Microsoft Dynamics CRM Help. The Id of the basic home tab is Mscrm.BasicHomeTab.

Note

The Jewel that was shown in Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online is no longer displayed. Changes to the Jewel will not appear in Microsoft Dynamics CRM 2013 and Microsoft Dynamics CRM Online

Microsoft Dynamics CRM for Microsoft Office Outlook ribbons

Microsoft Office Outlook 2007 do not display a ribbon. Microsoft Office Outlook 2010 uses the ribbon. You can use Microsoft Dynamics CRM ribbon definitions to add controls to all of them.

Microsoft Office Outlook 2007

The Microsoft Dynamics CRM for Microsoft Office Outlook controls to support older versions of Microsoft Office Outlook toolbars and menus are defined as tabs with the Id values of Mscrm.LegacyOfficeToolbar and Mscrm.LegacyOfficeMenubar, respectively.

Microsoft Office Outlook 2010

The Microsoft Dynamics CRM for Microsoft Office Outlook controls to support Microsoft Office Outlook 2010 toolbars and menus are defined as tabs with the Id values of Mscrm.Outlook14GlobalToolbar and Mscrm.Outlook14GlobalMenubar, respectively.

Other ribbons

Several other special purpose ribbon tabs and a contextual group are defined byMicrosoft Dynamics CRM. Each tab is associated with a specific <TabDisplayRule> (RibbonDiffXml) that controls when they will display. The following table lists these tabs.

Tab

Root Id

Description

Web Resource Edit page tab.

Mscrm.WebResourceEditTab

Displays when editing Web resources within a solution.

Form Editor tab

Mscrm.FormEditorTab

Provides Save, Edit, Select, and View groups of actions for entity forms.

Form Editor Insert tab

Mscrm.FormEditorInsertTab

Provides buttons to insert Sections, Tabs, and Controls in entity forms.

Dashboard Homepage tab

Mscrm.DashboardTab

Displays in the Workplace area.

Visualization Tools Contextual Group

Mscrm.VisualizationTools

Displays when the New Chart button is clicked on the Charts tab displayed in the entity grid ribbon.

AptbookTab Homepage tab

Mscrm.AptbookTab

Displays when viewing the Service Calendar in the Service area.

Advanced Find tab

Mscrm.AdvancedFind

Displays in the Advanced Find window.

Dashboard Editor tab

Mscrm.DashboardEditorTab

Displays when editing a dashboard.

Documents tab

Mscrm.DocumentsTab

Displays if SharePoint integration has been enabled for the organization.

Chart Editor tab

Mscrm.VisualizationDesignerTab

Displays when editing a chart from the solutions window.

Search Tools Contextual Group

Mscrm.ArticleSearch

Displays when viewing the KBarticle entity.

Ribbons for custom pages

You can display custom pages in the application navigation using the SiteMap. These pages will always display the Basic home tab (Mscrm.BasicHomeTab). It is not possible to use a <PageRule> (RibbonDiffXml) to enable or display custom ribbon components on custom pages.

See Also

Customize commands and the ribbon
Command bar or ribbon presentation