Solved

Dynamics CRM 2011 Custom Ribbon Button Problem

Posted on 2011-03-12
3
2,553 Views
Last Modified: 2012-05-11
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

0
Comment
Question by:savetheorcas
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
Chinmay Patel earned 500 total points
Comment Utility
Hi savetheorcas,

Try using sequence id 80 also are you able to import and publish the customization?

Regards,
Chinmay
0
 

Author Comment

by:savetheorcas
Comment Utility
I figured out the problem, I had TemplateAlias="01" when it should have been TemplateAlias="o1"
0
 
LVL 27

Expert Comment

by:Chinmay Patel
Comment Utility
:( 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.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now