Insert Custom button in CRM Form and Grid

Download you entity cutomization and replace <RibbonDiffXml></RibbonDiffXml> with below code

<

 

 

RibbonDiffXml>

<

 

 

CustomActions>

<

 

 

CustomActionId=Sample.opportunity.form.sendemail.CustomActionLocation=Mscrm.Form.opportunity.MainTab.Actions.Controls._childrenSequence=10>

<

 

 

CommandUIDefinition>

<

 

 

ButtonId=Sample.opportunity.form.sendemail.ButtonCommand=Sample.opportunity.form.sendemail.CommandLabelText=$LocLabels:Sample.opportunity.sendemail.LabelTextToolTipTitle=$LocLabels:Sample.opportunity.sendemail.LabelTextToolTipDescription=$LocLabels:Sample.opportunity.sendemail.ToolTipTemplateAlias=o1Image16by16=$webresource:aaron_AddEmail_16Image32by32=$webresource:aaron_Email_32 />

</

 

 

CommandUIDefinition>

</

 

 

CustomAction>

<

 

 

CustomActionId=Sample.opportunity.grid.SendToOtherSystem.CustomActionLocation=Mscrm.HomepageGrid.opportunity.MainTab.Actions.Controls._childrenSequence=41>

<

 

 

CommandUIDefinition>

<

 

 

ButtonId=Sample.opportunity.grid.sendemail.ButtonCommand=Sample.opportunity.grid.sendemail.CommandLabelText=$LocLabels:Sample.opportunity.sendemail.LabelTextToolTipTitle=$LocLabels:Sample.opportunity.sendemail.LabelTextToolTipDescription=$LocLabels:Sample.opportunity.sendemail.ToolTipTemplateAlias=o1Image16by16=$webresource:aaron_AddEmail_16Image32by32=$webresource:aaron_Email_32 />

</

 

 

CommandUIDefinition>

</

 

 

CustomAction>

</

 

 

CustomActions>

<

 

 

Templates>

<

 

 

RibbonTemplatesId=Mscrm.Templates></RibbonTemplates>

</

 

 

Templates>

<

 

 

CommandDefinitions>

<

 

 

CommandDefinitionId=Sample.opportunity.form.sendemail.Command>

<

 

 

EnableRules>

<

 

 

EnableRuleId=Sample.opportunity.WebClient.EnableRule />

<

 

 

EnableRuleId=Sample.opportunity.form.NotNew.EnableRule />

</

 

 

EnableRules>

<

 

 

DisplayRules>

<

 

 

DisplayRuleId=Sample.opportunity.form.FormStateNotNew.DisplayRule />

<

 

 

DisplayRuleId=Sample.opportunity.WebClient.DisplayRule />

</

 

 

DisplayRules>

<

 

 

Actions>

<

 

 

JavaScriptFunctionLibrary=$webresource:aaron_opptysendemailFunctionName=invokeemailform></JavaScriptFunction>

</

 

 

Actions>

</

 

 

CommandDefinition>

<

 

 

CommandDefinitionId=Sample.opportunity.grid.sendemail.Command>

<

 

 

EnableRules>

<

 

 

EnableRuleId=Sample.opportunity.WebClient.EnableRule />

<

 

 

EnableRuleId=Sample.opportunity.grid.OneSelected.EnableRule />

</

 

 

EnableRules>

<

 

 

DisplayRules>

<

 

 

DisplayRuleId=Sample.opportunity.WebClient.DisplayRule />

</

 

 

DisplayRules>

<

 

 

Actions>

<

 

 

JavaScriptFunctionLibrary=$webresource:aaron_opptysendemailFunctionName=invokeemailformfromgrid>

<

 

 

CrmParameterValue=SelectedControlSelectedItemIds />

</

 

 

JavaScriptFunction>

</

 

 

Actions>

</

 

 

CommandDefinition>

</

 

 

CommandDefinitions>

<

 

 

RuleDefinitions>

<

 

 

TabDisplayRules />

<

 

 

DisplayRules>

<

 

 

DisplayRuleId=Sample.opportunity.form.FormStateNotNew.DisplayRule>

<

 

 

FormStateRuleState=CreateInvertResult=true />

</

 

 

DisplayRule>

<

 

 

DisplayRuleId=Sample.opportunity.WebClient.DisplayRule>

<

 

 

OrRule>

<

 

 

Or>

<

 

 

CrmClientTypeRuleType=Web />

</

 

 

Or>

<

 

 

Or>

<

 

 

CrmClientTypeRuleType=Outlook />

</

 

 

Or>

</

 

 

OrRule>

</

 

 

DisplayRule>

</

 

 

DisplayRules>

<

 

 

EnableRules>

<

 

 

EnableRuleId=Sample.opportunity.WebClient.EnableRule>

<

 

 

OrRule>

<

 

 

Or>

<

 

 

CrmClientTypeRuleType=Web />

</

 

 

Or>

<

 

 

Or>

<

 

 

CrmClientTypeRuleType=Outlook />

</

 

 

Or>

</

 

 

OrRule>

</

 

 

EnableRule>

<

 

 

EnableRuleId=Sample.opportunity.form.NotNew.EnableRule>

<

 

 

FormStateRuleState=CreateInvertResult=true />

</

 

 

EnableRule>

<

 

 

EnableRuleId=Sample.opportunity.grid.OneSelected.EnableRule>

<

 

 

SelectionCountRuleAppliesTo=SelectedEntityMaximum=1Minimum=1 />

</

 

 

EnableRule>

</

 

 

EnableRules>

</

 

 

RuleDefinitions>

<

 

 

LocLabels>

<

 

 

LocLabelId=Sample.opportunity.sendemail.LabelText>

<

 

 

Titles>

<

 

 

Titlelanguagecode=1033description=Send Email />

</

 

 

Titles>

</

 

 

LocLabel>

<

 

 

LocLabelId=Sample.opportunity.sendemail.ToolTip>

<

 

 

Titles>

<

 

 

Titlelanguagecode=1033description=Send Email />

</

 

 

Titles>

</

 

 

LocLabel>

</

 

 

LocLabels>

</

 

 

RibbonDiffXml>

This entry was posted in MS Dynamic CRM 2011. Bookmark the permalink.

11 Responses to Insert Custom button in CRM Form and Grid

  1. Reclaim PPI says:

    It was a real pleasure getting to your site a short while ago. I came up here today hoping to come across new things. I was not disappointed. Your ideas in new methods on this subject were useful and a good help to me. Thank you for having time to create these things as well as for sharing your ideas.

  2. What would most people do minus the marvellous strategies you discuss on this website? Who else has the fortitude to deal with vital topics with regard to common subscribers like me? I and my girlfriends are very blessed to have your website among the kinds we generally visit. It is hoped you know how significantly we get pleasure from your work! Best wishes coming from us all.

  3. pregnancy says:

    I can not thank you more than enough for the blogposts on your site. I know you place a lot of time and energy into all of them and truly hope you know how much I enjoy it. I hope I will do the identical thing for another person at some time.

  4. We so appreciate your website post. You’ll find a lot of approaches we could put it to really good use while using a minimum of effort in time and hard earned cash. Thank you really regarding helping make this post answer many questions we have come across before now.

  5. online games says:

    I merely wanted to inform you how much my partner and i appreciate anything you’ve discussed to help enhance the lives of individuals in this subject material. Through the articles, I’ve gone out of just an inexperienced to a professional in the area. It can be truly a tribute to your good work. Thanks

  6. Thanks a ton for your time and energy to have decided to put these things together on this blog. Janet and that i very much valued your insight through your own articles about certain things. I’m sure that you have many demands on timetable therefore the fact that an individual like you took just as much time like you did to help people just like us by means of this article is definitely highly liked.

  7. We truly appreciate your site post. You will find lots of methods we could put it to great use by using minimum effort with time and money. Thank you very much with regard to helping make this post reply many problems we have come across before now.

  8. It is really rare to get a specialist in whom you might have some faith. In the world in the present day, nobody absolutely cares about showing others exactly how in this subject matter. How blessed I am to have definitely found a really wonderful web page as this. It truly is people like you that make a true difference currently through the ideas they talk about.

  9. micro nichos says:

    Thank you for your energy to have decided to put these things together on this web site. Janet and i also very much treasured your input through the articles on certain things. I am aware that you have quite a few demands in your program and so the fact that you actually took equally as much time like you did to help people like us by way of this article is actually highly liked.

  10. I won’t be able to thank you adequately for the blogposts on your web-site. I know you put a lot of time and effort into these and truly hope you know how considerably I enjoy it. I hope I will do the identical thing for another person one of these days.

  11. Could not thank you sufficiently for the blogposts on your web-site. I know you placed a lot of time and effort into these and hope you know how much I enjoy it. I hope I’ll do exactly the same for another person one of these days.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>