Archive for June 10, 2012

Rename out of the box associated view ribbon buttons in CRM 2011


When we have relationship between two entities, the child entity link add to the left navigation of parent.

For example,

  • “Contacts” link add to the left navigation of “Accounts”
Contacts Associated View In Account

Contacts Associated View In Account

The view we call it as “Associate View” and it contains buttons with below naming convention

  • “Add {Display name of child}” (i.e., “Add Contact” in above screen)
  • “Add Existing {Display name of child}” (i.e., “Add Existing Contact” in above screen)

To rename the “Add & Add existing” buttons below are the steps

  • Create a new solution
  • Add child entity (i.e., Contact) in above example
  • Export & Save solution in local folder
  • Extract folder and open “Customizations.XML” in Visual Studio
  • Find <RibbonDiffXml><CustomActions> node
  • Add below XML

          <CustomAction Id=”Mscrm.SubGrid.{Entity Name}.AddNewStandard.CustomAction” Location=”Mscrm.SubGrid.{Entity Name}.AddNewStandard” Sequence=”210″>


<!–New Button Id – AddNewStandard; Existing Button Id – AddExistingStandard–>

<Button Id=”Mscrm.SubGrid.{Entity Name}.AddNewStandard



LabelText=”My Custom Text

Alt=”My Custom Text

Image16by16=”/_imgs/ribbon/NewRecord_16.png” Image32by32=”/_imgs/ribbon/newrecord32.png”

TemplateAlias=”o1″ ToolTipTitle=”Add New Contact”

ToolTipDescription=”$Resources(EntityDisplayName):Mscrm_SubGrid_EntityLogicalName_MainTab_Management_AddNewStandard_ToolTipDescription” />



  • Save, zip & Export solution