Deactivate Button on Custom Entity does not execute. RRS feed

  • Question

  • 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.


    Here is the section from the customizations.xml :

              <CustomAction Id="Sample.Form.new_CustomEntity.CustomAction" Location="Mscrm.Form.new_CustomEntity.Deactivate" Sequence="61">
                  <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" />
              <CommandDefinition Id="Mscrm.Form.Deactivate">
                <EnableRules >
                  <EnableRule Id="Mscrm.CanWritePrimary" />
                </EnableRules >
                  <DisplayRule Id="Mscrm.CanWritePrimary" />
                  <DisplayRule Id="Mscrm.PrimaryIsActive" />
                  <DisplayRule Id="Mscrm.PrimaryEntityHasStatecode" />
                  <DisplayRule Id="Mscrm.PrimaryIsNotActivity" />
                <Actions />

    • Edited by peter clift Thursday, February 20, 2014 10:22 PM
    Thursday, February 20, 2014 10:15 PM


All replies