Reputation: 6715
I'm trying to hide the 'Add Existing' button for a custom entity subgrid on the Contact form. My steps so far;
customisations.xml
in VS2010Add 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?
Upvotes: 0
Views: 2214
Reputation: 17552
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.
Upvotes: 1