How to hide or disable Ribbon Action Button in CRM 2011 related entities? RRS feed

  • Question

  • Hello,

    My previous question is answered.. And i tried that thing in this but its not happening as it should be.

    Like in Activity ,if there is related another entity lets take lead ,then lead ribbon will be different than Activity on Activity form, as shown in below 2 figure.

    I I want to hide this 'Add Existing Lead' ribbon button... How can i do this ?

    Please someone help.

    Friday, October 5, 2012 11:27 AM


All replies

    • Marked as answer by DynamicsCRM31 Friday, October 5, 2012 1:34 PM
    Friday, October 5, 2012 12:05 PM
  • Hi,

    To Hide Add Existing Lead Button follow this steps:

    1) Create solution and add Lead entity in that

    2) Export the solution and Extract the Zip File

    3) Open the Customizations.xml in Visual Studio

    4) find <RibbonDiffXml> tag under Lead entity

    add following coding in that

              <HideCustomAction Location="Mscrm.SubGrid.lead.AddExistingStandard" HideActionId="Mscrm.SubGrid.lead.AddExistingStandard.HideAction" />
              <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
            <CommandDefinitions />
              <TabDisplayRules />
              <DisplayRules />
              <EnableRules />
            <LocLabels />

    5) Save the file and Add it into Zip file

    7) Import the solution and publish customizations

    button will be disable

    (or)Use Ribbon editor to hide Button

    • Proposed as answer by Parthiban.T Tuesday, October 30, 2012 1:40 PM
    Friday, October 5, 2012 12:27 PM
  • Hi Maryna,

    Your link helped me a lot.

    Thank you very much.

    Friday, October 5, 2012 1:34 PM