Dynamics CRM 2011 Ribbon Customization Index

Here I am listing the index for my posts For Ribbon Customization

Topic Link
Understanding the CRM 2011 Ribbon
https://dynamicscrm2011.wordpress.com/2011/04/05/ribbon-customization/
Adding a Custom Tab to the CRM 2011 ribbon ( for HomePageGrid., and this will display for all the entities—like a Custom ISV Tab)

https://dynamicscrm2011.wordpress.com/2011/04/12/ms-dynamics-crm-2011-ribbon-customization-part-i-add-a-custom-tab-to-microsoft-dynamics-crm-2011-ribbon/

Understanding the Ribbon Customization-Schemas of the Ribbon https://dynamicscrm2011.wordpress.com/2011/04/12/ms-dynamics-crm-2011-ribbon-customization-part-2-understanding-the-ribbon-customization/
Adding a Custom Tab to the Specific Entity ( i.e for opportunity entity) https://dynamicscrm2011.wordpress.com/2011/04/13/ribbon-customization-part-3-add-a-custom-tab-to-a-specific-entityopportunity-entity/
Adding a Custom Tab, Custom Group,Button to the Grid Ribbon of a specific entity (i.e for Opportunity Entity) https://dynamicscrm2011.wordpress.com/2011/04/27/ribbon-customization-part-4-add-a-custom-tab-custom-group-and-custom-buttons-to-a-specific-entityopportunity-entity/
Adding a Custom Tab, Custom Group,Button to the Form Ribbon and SubGrid Ribbon of a specific entity (i.e for Opportunity Entity) https://dynamicscrm2011.wordpress.com/2011/04/27/ribbon-customization-part-5-add-a-custom-tab-custom-group-and-custom-buttons-to-a-form-ribbon-for-a-specific-entityopportunity-entity/
Adding a  Custom Group,Button to the existing tab of a specific entity (i.e for Opportunity Entity) https://dynamicscrm2011.wordpress.com/2011/04/28/ribbon-customization-part-6-add-a-custom-group-and-custom-buttons-to-existing-tab-for-a-specific-entityopportunity-entity/
Hiding a Ribbon Button in CRM 2011 https://dynamicscrm2011.wordpress.com/2011/04/28/ribbon-customization-part-7-hiding-a-ribbon-button-in-dynamics-crm-2011/
Hiding a Group of Ribbon Buttons in CRM 2011 https://dynamicscrm2011.wordpress.com/2011/04/29/ribbon-customization-part-8-hiding-a-group-of-ribbon-buttons-in-dynamics-crm-2011/
Adding a Button to Existing Group for custom entity’s Ribbon in Dynamics CRM 2011 https://dynamicscrm2011.wordpress.com/2011/05/02/ribbon-customization-part-9-adding-a-button-to-existing-group-for-custom-entitys-ribbon-in-dynamics-crm-2011/
   
   
   
   
   
   
   
   
   
Advertisements

Ribbon Customization Part-9-Adding a Button to Existing Group for custom entity’s Ribbon in Dynamics CRM 2011

Today we will see how to add a button to the Entity Forms existing group for a custom entity

for the sake of doing this I created a custom entity with name “testcustomentity” and want to add a custom button under the “Save Group”

Follow the below steps to do the same

  1. Create a solution
  2. Create a new entity”testcustomentity” , Save
  3. publish and export the solution
  4. unzip the solution
  5. Edit the customization.xml
  6. Place the below code for the RibbonDiffXML
  7.    1: <RibbonDiffXml>

       2:        <CustomActions>

       3:          

       4:        

       5:        <CustomAction Id="Sample.testcustomentity.form.Save.CustomAction"

       6:                  Location="Mscrm.Form.new_testcustomentity.MainTab.Save.Controls._children"

       7:                  Sequence="80">

       8:          <CommandUIDefinition>

       9:            <Button Id="Sample.testcustomentity.form.Save.Button"

      10:                    Command="Sample.testcustomentity.form.Save.Command"

      11:                    LabelText="$LocLabels:Sample.testcustomentity.form.Save.LabelText"

      12:                    ToolTipTitle="$LocLabels:Sample.testcustomentity.form.Save.LabelText"

      13:                    ToolTipDescription="$LocLabels:Sample.testcustomentity.form.Save.ToolTip"

      14:                    TemplateAlias="o1"

      15:                    Image16by16="/_imgs/ribbon/AddEmail_16.png"

      16:                    Image32by32="/_imgs/ribbon/Email_32.png" />

      17:          </CommandUIDefinition>

      18:        </CustomAction>

      19:        </CustomActions>

      20:        <Templates>

      21:          <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>

      22:        </Templates>

      23:        <CommandDefinitions>

      24:          <CommandDefinition Id="Sample.testcustomentity.form.Save.Command">

      25:            <EnableRules/>

      26:            <DisplayRules/>

      27:  

      28:            <Actions>

      29:              <JavaScriptFunction Library="$webresource:new_/ShowMessage.js" FunctionName="show">

      30:                <StringParameter Value="2" />

      31:              </JavaScriptFunction>

      32:            </Actions>

      33:          </CommandDefinition>

      34:        </CommandDefinitions>

      35:          

      36:        <RuleDefinitions>

      37:          <TabDisplayRules />

      38:          <DisplayRules />

      39:          <EnableRules />

      40:        </RuleDefinitions>

      41:        <LocLabels>

      42:          <LocLabel Id="Sample.testcustomentity.form.Save.LabelText">

      43:            <Titles>

      44:              <Title languagecode="1033"

      45:                      description="Custom Button1" />

      46:            </Titles>

      47:          </LocLabel>

      48:          <LocLabel Id="Sample.testcustomentity.form.Save.ToolTip">

      49:            <Titles>

      50:              <Title languagecode="1033"

      51:                      description="Custom Button1" />

      52:            </Titles>

      53:          </LocLabel>

      54:        </LocLabels>

      55:      </RibbonDiffXml>

  8. Save  the File
  9. Zip the Solution and Import it
  10. The result look like as shown in the below screenshot
  11. AddingacustombuttontoExsistingtabforacustomentity
  12. The complete solution can be downloaded here
  13. Happy learning.Smile