Hi,
I want to enable a 'Deactivate' button for a custom entity at the form level. This is my first ribbon button , so I might be missing something.
I can see the Button ok, but it doesn't seem to execute when I click on it.
Any debugging steps I can take to track this down ?
I am in the system admin group.I don't see any obvious errors in CMR log.I am using CRM 2011 on Premise.
Thanks,Peter
Here is the section from the customizations.xml :
<CustomAction Id="Sample.Form.new_CustomEntity.CustomAction" Location="Mscrm.Form.new_CustomEntity.Deactivate" Sequence="61"><CommandUIDefinition><Button Id="Mscrm.Form.new_CustomEntity.Deactivate" ToolTipTitle="$LocLabels:All.Deactivate.LabelText.ToolTip" ToolTipDescription="$LocLabels:All.Deactivate.LabelText.ToolTip" Command="Mscrm.Form.Deactivate" LabelText="$LocLabels:All.Deactivate.LabelText" Image16by16="/_imgs/ribbon/deactivate16.png" Image32by32="/_imgs/ribbon/Deactivate_32.png" TemplateAlias="o2" /></CommandUIDefinition></CustomAction> ....<CommandDefinitions><CommandDefinition Id="Mscrm.Form.Deactivate"><EnableRules ><EnableRule Id="Mscrm.CanWritePrimary" /></EnableRules ><DisplayRules><DisplayRule Id="Mscrm.CanWritePrimary" /><DisplayRule Id="Mscrm.PrimaryIsActive" /><DisplayRule Id="Mscrm.PrimaryEntityHasStatecode" /><DisplayRule Id="Mscrm.PrimaryIsNotActivity" /></DisplayRules><Actions /></CommandDefinition></CommandDefinitions>