MS CRM 2011 RibbonButton -Create Custom Button Code On Ribbon

MS CRM 2011 RibbonButton -Create Custom Button Code On Ribbon

Place the below code in

<RibbonDiffXml>
<CustomActions >

<CustomAction Id=”ACKhome” Location=”Mscrm.HomepageGrid.Contact.MainTab.Collaborate.Controls._children” Sequence=”1″>

<CommandUIDefinition>

<Button Id=”ACKhome1″ Command=”ACKCMD” LabelText=”Send” ToolTipTitle=”Send” ToolTipDescription=”Send” TemplateAlias=”o2″ Image16by16=”$webresource:new_Send16″ Image32by32=”$webresource:new_Send32″ />

</CommandUIDefinition>

</CustomAction>

</CustomActions >

<CommandDefinitions>

<CommandDefinition Id=”ACKCMD”>

<EnableRules>

<EnableRule Id=”SendEnableRule”></EnableRule>

</EnableRules>

<DisplayRules></DisplayRules>

<Actions>

<JavaScriptFunction Library=”$webresource:new_SendBtnCode” FunctionName=”SendRibBtn”>

</JavaScriptFunction>

</Actions>

</CommandDefinition>

</CommandDefinitions>
<RuleDefinitions>

<EnableRule Id=”SendEnableRule”>

<SelectionCountRule Minimum=”1″ Maximum=”1″ AppliesTo=”SelectedEntity” />

</EnableRule>

</RuleDefinitions>

Cheers,

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s