Change button Name in ribbon - CRM 2011 dynamics.
Hi,
When we have relationship between two entities, the child entity link add to the left navigation of parent.
For example,
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”
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)
- 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″>
<CommandUIDefinition>
<!–New Button Id – AddNewStandard; Existing Button Id – AddExistingStandard–>
<Button Id=”Mscrm.SubGrid.{Entity Name}.AddNewStandard“
Command=”Mscrm.AddNewRecordFromSubGridStandar d”
Sequence=”20″
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” />
</CommandUIDefinition>
</CustomAction>
- Save, zip & Export solution
No comments:
Post a Comment