Link to home
Start Free TrialLog in
Avatar of savetheorcas
savetheorcas

asked on

Dynamics CRM 2011 Custom Ribbon Button Problem

I'm attempting to add a custom button to the ribbon of a custom entity named "cgizmo_donation". I've created a new solution, exported it, and edited the customizations.xml file, but the button is not showing up anywhere. It's possible I have the sequence wrong, but I don't know how to find the correct variable for the sequence for this custom entity. Any help would be greatly appreciated.
<RibbonDiffXml>
        <CustomActions>
          <CustomAction Id="cgizmo_Recalculate" Location="Mscrm.Form.cgizmo_donation.MainTab.Save.Controls._children" Sequence="31">
            <CommandUIDefinition>
              <Button Id="cgizmo_Recalculate" Command="ReCalculate" LabelText="Recalculate" ToolTipTitle="Recalculate Totals" ToolTipDescription="Get In-Kind Contributions and recalculate totals" TemplateAlias="01" Image16by16="$webresource:cgizmo_icon_recalculate_16x16.png" Image32by32="$webresource:cgizmo_icon_recalculate_32x32.png" />
            </CommandUIDefinition>
          </CustomAction>
        </CustomActions>
        <Templates>
          <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
        </Templates>
        <CommandDefinitions>
          <CommandDefinition Id="ReCalculate">
            <EnableRules>
              <EnableRule Id="Mscrm.Enabled" />
            </EnableRules>
            <DisplayRules />
            <Actions>
              <JavaScriptFunction Library="$webresource:cgizmo_donation" FunctionName="recalculate" />
            </Actions>
          </CommandDefinition>
        </CommandDefinitions>
        <RuleDefinitions>
          <TabDisplayRules />
          <DisplayRules />
          <EnableRules />
        </RuleDefinitions>
        <LocLabels />
      </RibbonDiffXml>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of savetheorcas
savetheorcas

ASKER

I figured out the problem, I had TemplateAlias="01" when it should have been TemplateAlias="o1"
:( Really feeling bad that I could not point you to the right direction, I did notice it and still didn't think that it could be the issue and according to expert's exchange rules you can not assign points to me for a solution where I did not provide the answer.