For adding a custom group to a lead form we can make use of the following sample code.
Just replace the lead with your entity’s schema name to use it
<RibbonDiffXml>
<CustomActions>
<CustomAction
Id=“Sample.lead.form.CustomGroup.MaxSize.CustomAction“
Location=“Mscrm.Form.lead.MainTab.Scaling._children“
Sequence=“120“>
<CommandUIDefinition>
<MaxSize
Id=“Sample.lead.form.CustomGroup.MaxSize“
GroupId=“MyLeadCustomGroup“
Sequence=“21“
Size=“LargeLarge“/>
</CommandUIDefinition>
</CustomAction>
<CustomAction
Id=“MyLeadCustomAction“
Location=“Mscrm.Form.lead.MainTab.Groups._children“
Sequence=“110“>
<CommandUIDefinition>
<Group
Id=“MyLeadCustomGroup“
Title=“My Lead Custom Group“
Sequence=“39“
Template=“Mscrm.Templates.Flexible2“>
<Controls
Id=“MyCustomControls“>
<Button
Id=“MyCustomButton1“
Sequence=“10“
LabelText=“My Custom Button1“
ToolTipTitle=“My Custom Button1“
ToolTipDescription=“My Custom Button1“
TemplateAlias=“o1“/>
</Controls>
</Group>
</CommandUIDefinition>
</CustomAction>
</CustomActions>
<Templates>
<RibbonTemplates
Id=“Mscrm.Templates“/>
</Templates>
<CommandDefinitions>
</CommandDefinitions>
<RuleDefinitions>
<TabDisplayRules/>
<DisplayRules/>
<EnableRules/>
</RuleDefinitions>
<LocLabels/>
</RibbonDiffXml>
Hope it helps!
really helped, thanks !!
LikeLike