Question

I'm trying to hide the 'Add Existing' button for a custom entity subgrid on the Contact form. My steps so far;

  • Add Contact entity to solution
  • Export solution and load up customisations.xml in VS2010
  • Add following to CustomAction node

    <HideCustomAction HideActionId="sample.Mscrm.SubGrid.new_gppractice.AddExistingAssoc.HideAction" Location="Mscrm.SubGrid.new_gppractice.AddExistingAssoc" />
    <HideCustomAction HideActionId="sample.Mscrm.SubGrid.new_gppractice.AddExistingStandard.HideAction" Location="Mscrm.SubGrid.new_gppractice.AddExistingStandard" />
    
  • Save, reimport

Upon trying to reimport I get the following error:

The ribbon item 'sample.Mscrm.SubGrid.new_gppractice.AddExistingAssoc.HideAction' is dependent on ribbon control id='Mscrm.SubGrid.new_gppractice.AddExistingAssoc'
The ribbon item 'sample.Mscrm.SubGrid.new_gppractice.AddExistingStandard.HideAction' is dependent on ribbon control id='Mscrm.SubGrid.new_gppractice.AddExistingStandard'

Any ideas why I'm getting these errors?

Was it helpful?

Solution

Can't say I have an actual explanation for why this has failed.

However I can suggest trying: Ribbon Workbench, it makes these sort of customizations significantly easier.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top