Custom Single Button Add in Ribbon
[RibbonDiffXml]
[CustomActions]
[CustomAction Id="MScrm.Form.[[Entity Name]].[[Buttonname]].CustomAction" Location="Mscrm.Form.[[Entity Name]].MainTab.Workflow.Controls._children" Sequence="47"]
[CommandUIDefinition]
[Button Id="MScrm.Form.[[Entity Name]].[[Buttonname]].Button" LabelText="Credit Check" ToolTipTitle="Check the Credit" TemplateAlias="o1" Image16by16="/_imgs/SFA/AlignGoal_16.png" Image32by32="/_imgs/SFA/AlignGoal_32.png" /]
[/CommandUIDefinition]
[/CustomAction]
[/CustomActions]
[Templates]
[RibbonTemplates Id="Mscrm.Templates"][/RibbonTemplates]
[/Templates]
- Add that Entity in the Solution in which you want to add in Button.
- Export the Solution and Paste this code under RibbonDiffXml section.
- Here I add one button in Workflow section in riibon, if you want to add in collaborate section then just change in Location as MainTab.Collaborate.Controls
- Here I use [ ] instead of < > So please Find and Replace.
[RibbonDiffXml]
[CustomActions]
[CustomAction Id="MScrm.Form.[[Entity Name]].[[Buttonname]].CustomAction" Location="Mscrm.Form.[[Entity Name]].MainTab.Workflow.Controls._children" Sequence="47"]
[CommandUIDefinition]
[Button Id="MScrm.Form.[[Entity Name]].[[Buttonname]].Button" LabelText="Credit Check" ToolTipTitle="Check the Credit" TemplateAlias="o1" Image16by16="/_imgs/SFA/AlignGoal_16.png" Image32by32="/_imgs/SFA/AlignGoal_32.png" /]
[/CommandUIDefinition]
[/CustomAction]
[/CustomActions]
[Templates]
[RibbonTemplates Id="Mscrm.Templates"][/RibbonTemplates]
[/Templates]
0 Comments