Hi all
I have been working in Dynamics 365 Customer Engagement and I encountered something weird that I cannot explain: in the ribbon workbench, it is possible to add custom buttons, they get published as expected, but when i delete those custom buttons afterwards and publish those changes, the custom button just stays visible.
Steps to reproduce:
- on the Dynamics CRM trial environment, I created a new solution, containing an unmanaged entity
- via XRMToolbox - Ribbon Workbench, I added a custom button to the subgrid ribbon of a custom entity.
- i published the changes ==> new button is visible in the forms.
- reopen the solution in xrmToolbox, delete the custom button and publish again
- reopen the solution again and look at the xml-structure:
==> the custom button is still visible on the screens and exists in the xml RibbonDiffXml:
<RibbonDiffXml>
<CustomActions>
<CustomAction Id="cre.cre_test.Button2.Button.CustomAction" Location="Mscrm.SubGrid.cre_test.MainTab.Management.Controls._children" Sequence="13">
<CommandUIDefinition>
<Button Id="cre.cre_test.Button2.Button" LabelText="$LocLabels:cre.cre_test.Button2.Button.LabelText" Sequence="13" TemplateAlias="o1" />
</CommandUIDefinition>
</CustomAction>
</CustomActions>
<Templates>
<RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
</Templates>
<CommandDefinitions />
<RuleDefinitions>
<TabDisplayRules />
<DisplayRules />
<EnableRules />
</RuleDefinitions>
<LocLabels>
<LocLabel Id="cre.cre_test.Button2.Button.LabelText">
<Titles>
<Title description="Button 2" languagecode="1033" />
</Titles>
</LocLabel>
</LocLabels>
</RibbonDiffXml>
Is there a way to remove a wrongly added buttons to custom entities? I noticed that, for default entities like accounts, this can be done as I would expect.
Thanks in advance
Jef Elst
*This post is locked for comments