Define Ribbon Commands

[Applies to: Microsoft Dynamics CRM 2011]

A Ribbon command creates a reusable definition that can be referenced by one or more ribbon control elements.

Ribbon Command Elements

The <CommandDefinition> (RibbonDiffXml) element defines a command in the ribbon. The Id attribute specifies a unique identifier for the command that can be referenced by ribbon control elements by using the Command parameter.

A ribbon command defines three things:

  • Enable Rules: Specifies when a specific ribbon control will be enabled.

  • Display Rules: Specifies when a specific ribbon element will be visible.

  • Actions: Specifies what code will execute when a ribbon control is uses.

securitySecurity Note
All command definitions are downloaded to every user's computer so that they can be evaluated at run time. This means that a user without the privileges to see a particular control in the ribbon can use the browser View Source command, and by reviewing the code, determine that a control exists that would not be displayed to them in Microsoft Dynamics CRM.

See Also

Microsoft Dynamics CRM 2011
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.

Community Additions