troubleshooting Question

Adding a button to CRM 2011 ribbon

Avatar of lweekly
lweekly asked on
Microsoft Dynamics
5 Comments1 Solution3534 ViewsLast Modified:
I have been laboring to add a button to the Contact Add tab for sending a text message.  I have a small icon that appears under Other Activities that works, but our users would like a large button just to the right of the E-Mail button.
 
All of the webresources exist and function from the original menu item.
 
I would greatly appreciate anyone that can spot what I am doing wrong and let me know.
 
Here's my RibbonDiffXml section, followed by the errors from the Error Log.
 
<RibbonDiffXml>
        <CustomActions >
          <CustomAction Id="Lon.contact.form.SendTextMessage.CustomAction"
              Location="Mscrm.Form.contact.Related.Activities.Controls._children"
              Sequence="25">
            <CommandUIDefinition>
              <Button Id="Lon.contact.form.SendTextMessage.Button"
              Command="Lon.contact.form.SendTextMessage.Command"
              LabelText="$LocLabels:Lon.contact.form.SendTextMessage.LabelText"
              ToolTipTitle="$LocLabels:Lon.contact.form.SendTextMessage.LabelText"
              ToolTipDescription="$LocLabels:Lon.contact.form.SendTextMessage.ToolTip"
              TemplateAlias="o1"
              Image16by16="$webresource:new_TextIcon16.png"
              Image32by32="$webresource:new_TextIcon32.png" />
            </CommandUIDefinition>
          </CustomAction>
          </CustomActions>  
        <Templates>
          <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
        </Templates>
        <CommandDefinitions>
          <CommandDefinition Id="Lon.contact.form.SendTextMessage.Command">
            <EnableRules>
              <EnableRule Id="Lon.contact.WebClient.EnableRule" />
              <EnableRule Id="Lon.contact.form.NotNew.EnableRule"/>
            </EnableRules>
            <DisplayRules>
              <DisplayRule Id="Lon.contact.form.FormStateNotNew.DisplayRule" />
              <DisplayRule Id="Lon.contact.WebClient.DisplayRule" />
            </DisplayRules>
            <Actions>
              <JavaScriptFunction Library="$webresource:new_SendTextMessage.js"
              FunctionName="send" />
            </Actions>
          </CommandDefinition>
        </CommandDefinitions>
        <RuleDefinitions>
          <TabDisplayRules />
          <DisplayRules>
            <DisplayRule Id="Lon.contact.form.FormStateNotNew.DisplayRule">
              <FormStateRule State="Create" InvertResult="true" />
            </DisplayRule>
          </DisplayRules>
          <EnableRules>
            <EnableRule Id="Lon.contact.WebClient.EnableRule">
              <CrmClientTypeRule Type="Web" />
            </EnableRule>
            <EnableRule Id="Lon.contact.form.NotNew.EnableRule">
              <FormStateRule State="Create" InvertResult="true" />
            </EnableRule>
           </EnableRules>
          </RuleDefinitions>
        <LocLabels>
          <LocLabel Id="Lon.contact.form.SendTextMessage.LabelText">
            <Titles>
              <Title languagecode="1033" description="Send Text Message" />
            </Titles>
          </LocLabel>
          <LocLabel Id="Lon.contact.form.SendTextMessage..ToolTip">
            <Titles>
              <Title languagecode="1033" description="Send Text Message to this Contact" />
            </Titles>
          </LocLabel>
        </LocLabels>
      </RibbonDiffXml>
 
Error Log Items:
The ribbon item 'Lon.contact.form.SendTextMessage.Command' is dependent on <DisplayRule Id="Lon.contact.WebClient.DisplayRule" />.
The ribbon item 'Lon.contact.form.SendTextMessage.Command' is dependent on Web resource id='new_SendTextMessage.js'.
The ribbon item 'Lon.contact.form.SendTextMessage.Button' is dependent on <LocLabel Id="Lon.contact.form.SendTextMessage.ToolTip" />.
The ribbon item 'Lon.contact.form.SendTextMessage.Button' is dependent on Web resource id='new_TextIcon16.png'.
The ribbon item 'Lon.contact.form.SendTextMessage.Button' is dependent on Web resource id='new_TextIcon32.png'.
The ribbon item 'Lon.contact.form.SendTextMessage.Command' is dependent on <DisplayRule Id="Lon.contact.WebClient.DisplayRule" />.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros