Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Ribbon Workbench, button not visible

(0) ShareShare
ReportReport
Posted on by

Hi. I want to start a dialog from a button on the form of contact records. 

I don't remember this being so hard in CRM 2011 but now it feels almost impossible. I use Ribbon Workbench 2013/2015 tool and I created;

1. A button.

2. A command

This is all I really needed to do earlier if I wanted it to always show on the form. But it didn't this time.

So I also added 

3. A display rule

4. An enable rule 

These both look like this. It's what I found online and I thought was the issue due to the new form rendering in 2015. 

enablerule.JPG

But still doesn't show on the form.

Anybody know what I can do next?

I even had to hide my button and start fresh with a new one because any changes or if i tried to remove the button I got an error about the command that it's dependent on the enablerule. So now it's stuck there and I cant delete enablerule or the command, it gives the same error. 

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Ribbon Workbench, button not visible

    Hello,

    If you are facing challenges with buttons display , then below article from Microsoft is awesome. 

    https://support.microsoft.com/en-us/help/4552163/ribbon-troubleshooting-guide

    We will be able to use an in-app tool called the Command Checker to inspect the ribbon component definitions to help us determine why the button is hidden.

    To enable the Command Checker, you must append a parameter &ribbondebug=true to your D365 application URL.

    Thanks,

    Sumit

  • J. O. Profile Picture
    on at
    RE: Ribbon Workbench, button not visible

    Sometimes it takes 10 min after publish to take.  Thanks for reminding me...

  • ravibachanagiri Profile Picture
    185 on at
    RE: Ribbon Workbench, button not visible

    Hi Scott,

    Recently I tried to hide Close button on the form using "Ribbon Workbenck" never had issues in the past. Now I want to Unhide the same button after doing so its not visible on the form. I tried to created couple of new buttons and later unhide them which are working fine. Is there any work around to over come this.

    Please check the below images.

    missingclosebutton.PNGmissingclosebutton.PNG

    Cheers

    Ravi Bachanagiri.

  • Community Member Profile Picture
    on at
    RE: Ribbon Workbench, button not visible

    Hi again, Scott.

    I was a bit quick to verify your answer because I thought that it would work by exporting a solution, modify the xml and reimporting it into CRM. However, after trying it I am stumbling into the same errors here (during import) that the Ribbon Workbench is giving me.

    For example, I tried removing the entire <RibbonDiff> block, so I simply replaced it with  "<RibbonDiffXml />" and this would fail to import into CRM (Command is dependent on Enablerule)

    ribbon1.JPG

    I have tried to just delete the info inside the relevant XML tags (my two buttons , commands and enablerules) but that hasn't given me any results either.

    Nothing is able to publish in CRM now so this just went from annoying to critical.

    The Command that is throwing the error is not visible in the XML or Ribbon Workbench.. And it gives errors when trying to publish the newly loaded solution in Ribbon Workbench - but if I create a new command and name it to the same name as the one thats "missig" and throwing errors, it publishes just fine.. I publish twice just to make perfectly sure that it "sticks" and then reload the solution - and then the command is gone again .. And if I export the solution and check the XML it is not there either..

    So we have a Command that is created in Ribbon Workbench initially but is now not visible in solution XML or Ribbon Workbench , but it's giving dependency errors and prevents publishing of changes...


    Did I just ruin my CRM org with Ribbon Workbench?

  • ScottDurow Profile Picture
    19 on at
    RE: Ribbon Workbench, button not visible

    Here are better step by step instructions if you've never done manual ribbon xml editing - rajeevpentyala.wordpress.com/.../found-more-than-one-ribbondiff-entity-error-while-publishing-customizations

  • ScottDurow Profile Picture
    19 on at
    RE: Ribbon Workbench, button not visible

    Hi,

    I've not seen this since CRM2013 - but I see you're using CRM2015! I know how frustrating it can be!

    In the past the solution has been to remove all ribbonxml manually (take a backup) - import, then add them back in again. Try following the instructions in - support.microsoft.com/.../2503029

    Hope this helps,

    Scott

  • Community Member Profile Picture
    on at
    RE: Ribbon Workbench, button not visible

    I edit this post now because I can't even publish after opening the solution now. I was adding a new command because of the Command-Enablerule dependency on the first Button/Command that threw errors on publish as soon as i tried to edit anything. But after adding a new button and command I got some errors anyway and now I'm left with 2 buttons that point to the first, existing Command and the Command that I created as number 2 is gone.. 

    If I try to publish anything I get an error that the second button is dependent on the second Command.. Even though the command is not there and the button is pointing to the first command. What is this ?!

    Here's the error when publishing: (even after just opening the solution and publish no changes)

    RibbonWorkbenchError2.JPG

    And here you can see for yourself that there is no link to that Command on the button:

    RibbonWorkbenchError2.JPG

    And here you can see that there isn't even a command with that name anymore (it never got published correctly I believe.. because I did create it and was trying to get it to work, but errors forced me to cancel and open the solution all over again)

    RibbonWorkbenchError3.JPG

    Is there no easy way to just delete Buttons, Commands and rules without the whole tool just going into lockdown mode because of dependencies? Gaah!

    The XML : 

    <?xml version="1.0" encoding="utf-16"?>
    <RibbonDiffXml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <CustomActions>
    <CustomAction Id="custom.Mscrm.HomepageGrid.contact.MainTab.Management.CustomAction" Location="Mscrm.HomepageGrid.contact.MainTab.Groups._children" Sequence="10">
    <CommandUIDefinition>
    <Group Command="Mscrm.Enabled" Description="$Resources:Ribbon.HomepageGrid.MainTab.Management" Id="Mscrm.HomepageGrid.contact.MainTab.Management" Image32by32Popup="/_imgs/ribbon/newrecord32.png" Sequence="10" Template="Mscrm.Templates.FourOverflow" Title="$Resources:Ribbon.HomepageGrid.MainTab.Management">
    <Controls Id="Mscrm.HomepageGrid.contact.MainTab.Management.Controls">
    <Button Alt="$Resources:Ribbon.HomepageGrid.MainTab.New" Command="Mscrm.NewRecordFromGrid" Id="Mscrm.HomepageGrid.contact.NewRecord" Image32by32="/_imgs/ribbon/newrecord32.png" Image16by16="/_imgs/ribbon/New_16.png" LabelText="$Resources:Ribbon.HomepageGrid.MainTab.New" Sequence="10" TemplateAlias="o1" ToolTipTitle="$Resources:Ribbon.HomepageGrid.MainTab.New" ToolTipDescription="$Resources(EntityDisplayName):Ribbon.Tooltip.New" ModernImage="New" />
    <Button Alt="$Resources:Ribbon.HomepageGrid.MainTab.Management.Edit" Command="Mscrm.EditSelectedRecord" Id="Mscrm.HomepageGrid.contact.Edit" Image32by32="/_imgs/ribbon/edit32.png" Image16by16="/_imgs/ribbon/Edit_16.png" LabelText="$Resources:Ribbon.HomepageGrid.MainTab.Management.Edit" Sequence="20" TemplateAlias="o1" ToolTipTitle="$Resources:Ribbon.HomepageGrid.MainTab.Management.Edit" ToolTipDescription="$Resources(EntityDisplayName):Ribbon.Tooltip.Edit" />
    <Button Alt="$Resources:Ribbon.HomepageGrid.account.Record.Status.Activate" Command="Mscrm.HomepageGrid.Activate" Id="Mscrm.HomepageGrid.contact.Activate" Image32by32="/_imgs/ribbon/Activate_32.png" Image16by16="/_imgs/ribbon/Activate_16.png" LabelText="$Resources:Ribbon.HomepageGrid.account.Record.Status.Activate" Sequence="30" TemplateAlias="o2" ToolTipTitle="$Resources:Ribbon.HomepageGrid.account.Record.Status.Activate" ToolTipDescription="$Resources(EntityPluralDisplayName):Ribbon.Tooltip.Activate" ModernImage="Activate" />
    <Button Alt="$Resources:Ribbon.HomepageGrid.account.Record.Status.Deactivate" Command="Mscrm.HomepageGrid.Deactivate" Id="Mscrm.HomepageGrid.contact.Deactivate" Image32by32="/_imgs/ribbon/Deactivate_32.png" Image16by16="/_imgs/ribbon/Deactivate_16.png" LabelText="$Resources:Ribbon.HomepageGrid.account.Record.Status.Deactivate" Sequence="40" TemplateAlias="o2" ToolTipTitle="$Resources:Ribbon.HomepageGrid.account.Record.Status.Deactivate" ToolTipDescription="$Resources(EntityPluralDisplayName):Ribbon.Tooltip.Deactivate" ModernImage="DeActivate" />
    <SplitButton Alt="$Resources:Ribbon.HomepageGrid.MainTab.Management.Delete" Command="Mscrm.HomepageGrid.DeleteSplitButtonCommand" Id="Mscrm.HomepageGrid.contact.DeleteMenu" Image32by32="/_imgs/Workplace/remove_32.png" Image16by16="/_imgs/ribbon/Delete_16.png" LabelText="$Resources:Ribbon.HomepageGrid.MainTab.Management.Delete" Sequence="50" TemplateAlias="o2" ToolTipTitle="$Resources:Mscrm_HomepageGrid_Other_MainTab_Management_Delete_ToolTipTitle" ToolTipDescription="$Resources(EntityPluralDisplayName):Ribbon.HomepageGrid.Tooltip.Delete" ModernImage="Remove">
    <Menu Id="Mscrm.HomepageGrid.contact.DeleteMenu.Menu">
    <MenuSection Id="Mscrm.HomepageGrid.contact.DeleteMenu.MenuSection" Sequence="10" DisplayMode="Menu16">
    <Controls Id="Mscrm.HomepageGrid.contact.DeleteMenu.Controls">
    <Button Alt="$Resources:Ribbon.HomepageGrid.MainTab.Management.Delete" Command="Mscrm.DeleteSelectedRecord" Id="Mscrm.HomepageGrid.contact.Delete" Image32by32="/_imgs/Workplace/remove_32.png" Image16by16="/_imgs/ribbon/Delete_16.png" LabelText="$Resources:Ribbon.HomepageGrid.MainTab.Management.Delete" Sequence="50" ToolTipTitle="$Resources:Mscrm_HomepageGrid_Other_MainTab_Management_Delete_ToolTipTitle" ToolTipDescription="$Resources(EntityPluralDisplayName):Ribbon.HomepageGrid.Tooltip.Delete" />
    <Button Command="Mscrm.HomepageGrid.BulkDelete" Id="Mscrm.HomepageGrid.contact.BulkDelete" Image32by32="/_imgs/ribbon/BulkDeleteWizard_32.png" Image16by16="/_imgs/ribbon/BulkDelete_16.png" LabelText="$Resources:Ribbon.HomepageGrid.MainTab.Management.BulkDelete" Sequence="100" ToolTipTitle="$Resources:Ribbon.HomepageGrid.MainTab.Management.BulkDelete" ToolTipDescription="$Resources:Ribbon.HomepageGrid.MainTab.Management.BulkDelete.TooltipDescription" />
    </Controls>
    </MenuSection>
    </Menu>
    </SplitButton>
    <Button Alt="$Resources:Ribbon.HomepageGrid.account.Record.Merge.MergeRecords" Command="Mscrm.HomepageGrid.contact.MergeRecords" Id="Mscrm.HomepageGrid.contact.MergeRecords" Image32by32="/_imgs/ribbon/MergeRecords_32.png" Image16by16="/_imgs/ribbon/MergeRecords_16.png" LabelText="$Resources:Ribbon.HomepageGrid.account.Record.Merge.MergeRecords" Sequence="59" TemplateAlias="o3" ToolTipTitle="$Resources:Ribbon.HomepageGrid.account.Record.Merge.MergeRecords" ToolTipDescription="$Resources:Ribbon.Tooltip.Merge" />
    <FlyoutAnchor Alt="$Resources:Ribbon.HomepageGrid.account.Record.Dupe.Detect" Command="Mscrm.HomepageGrid.DetectDupes" Id="Mscrm.HomepageGrid.contact.Detect" Image16by16="/_imgs/ribbon/DetectDuplicates_16.png" Image32by32="/_imgs/ribbon/DuplicateDetection_32.png" LabelText="$Resources:Ribbon.HomepageGrid.account.Record.Dupe.Detect" Sequence="60" TemplateAlias="o3" ToolTipTitle="$Resources:Ribbon.HomepageGrid.account.Record.Dupe.Detect" ToolTipDescription="$Resources(EntityPluralDisplayName):Ribbon.Tooltip.DetectDuplicates">
    <Menu Id="Mscrm.HomepageGrid.contact.Detect.Menu">
    <MenuSection Id="Mscrm.HomepageGrid.contact.Detect.MenuSection" Sequence="10" DisplayMode="Menu16">
    <Controls Id="Mscrm.HomepageGrid.contact.Detect.Controls">
    <Button Alt="$Resources:Ribbon.HomepageGrid.account.Record.Dupe.Detect.Selected" Command="Mscrm.HomepageGrid.DetectDupesSelected" Id="Mscrm.HomepageGrid.contact.Detect.Selected" Image32by32="/_imgs/ribbon/DeleteSelected_32.png" Image16by16="/_imgs/ribbon/DeleteSelected_16.png" LabelText="$Resources:Ribbon.HomepageGrid.account.Record.Dupe.Detect.Selected" Sequence="10" ToolTipTitle="$Resources:Mscrm_HomepageGrid_Other_MainTab_Management_Detect_Selected_ToolTipTitle" ToolTipDescription="$Resources:Mscrm_HomepageGrid_Other_MainTab_Management_Detect_Selected_ToolTipDescription" />
    <Button Alt="$Resources:Ribbon.HomepageGrid.account.Record.Dupe.Detect.All" Command="Mscrm.HomepageGrid.DetectDupesAll" Id="Mscrm.HomepageGrid.contact.Detect.All" Image32by32="/_imgs/ribbon/DetectAll_32.png" Image16by16="/_imgs/ribbon/DetectAll_16.png" LabelText="$Resources:Ribbon.HomepageGrid.account.Record.Dupe.Detect.All" Sequence="20" ToolTipTitle="$Resources:Mscrm_HomepageGrid_Other_MainTab_Management_Detect_All_ToolTipTitle" ToolTipDescription="$Resources(EntityDisplayName):Mscrm_HomepageGrid_EntityLogicalName_MainTab_Management_Detect_All_ToolTipDescription" />
    </Controls>
    </MenuSection>
    </Menu>
    </FlyoutAnchor>
    </Controls>
    </Group>
    </CommandUIDefinition>
    </CustomAction>
    <CustomAction Id="custom.contact.Button1.Button.CustomAction" Location="Mscrm.Form.contact.MainTab.Save.Controls._children" Sequence="53">
    <CommandUIDefinition>
    <Button Alt="$LocLabels:custom.contact.Button1.Button.Alt" Command="custom.contact.Command0.Bytforetag" Description="Kontakten byter företag och anställningshistorik skapas" Id="custom.contact.Button1.Button" Image32by32="/_imgs/ribbon/expandchart32.png" Image16by16="/_imgs/ribbon/ExpandChart16.png" LabelText="$LocLabels:custom.contact.Button1.Button.LabelText" Sequence="53" TemplateAlias="o1" ToolTipTitle="$LocLabels:custom.contact.Button1.Button.ToolTipTitle" ToolTipDescription="$LocLabels:custom.contact.Button1.Button.ToolTipDescription" />
    </CommandUIDefinition>
    </CustomAction>
    <CustomAction Id="custom.contact.Button2.Button.CustomAction" Location="Mscrm.Form.contact.MainTab.Save.Controls._children" Sequence="57">
    <CommandUIDefinition>
    <Button Alt="$LocLabels:custom.contact.Button2.Button.Alt" Command="custom.contact.Command0.Bytforetag" Description="Kontakten byter företag och anställningshistorik skapas" Id="custom.contact.Button2.Button" Image32by32="/_imgs/ribbon/expandchart32.png" Image16by16="/_imgs/ribbon/ExpandChart16.png" LabelText="$LocLabels:custom.contact.Button2.Button.LabelText" Sequence="57" TemplateAlias="o1" ToolTipTitle="$LocLabels:custom.contact.Button2.Button.ToolTipTitle" ToolTipDescription="$LocLabels:custom.contact.Button2.Button.ToolTipDescription" />
    </CommandUIDefinition>
    </CustomAction>
    <CustomAction Id="custom.Mscrm.HomepageGrid.contact.MainTab.Management.MaxSize.CustomAction" Location="Mscrm.HomepageGrid.contact.MainTab.Scaling._children" Sequence="10">
    <CommandUIDefinition>
    <MaxSize GroupId="Mscrm.HomepageGrid.contact.MainTab.Management" Id="Mscrm.HomepageGrid.contact.MainTab.Management.MaxSize" Sequence="10" Size="LargeMediumLargeMedium" />
    </CommandUIDefinition>
    </CustomAction>
    <CustomAction Id="custom.Mscrm.HomepageGrid.contact.MainTab.Management.Scale.1.CustomAction" Location="Mscrm.HomepageGrid.contact.MainTab.Scaling._children" Sequence="130">
    <CommandUIDefinition>
    <Scale GroupId="Mscrm.HomepageGrid.contact.MainTab.Management" Id="Mscrm.HomepageGrid.contact.MainTab.Management.Scale.1" Sequence="130" Size="LargeMediumLargeMedium" />
    </CommandUIDefinition>
    </CustomAction>
    <CustomAction Id="custom.Mscrm.HomepageGrid.contact.MainTab.Management.Scale.2.CustomAction" Location="Mscrm.HomepageGrid.contact.MainTab.Scaling._children" Sequence="170">
    <CommandUIDefinition>
    <Scale GroupId="Mscrm.HomepageGrid.contact.MainTab.Management" Id="Mscrm.HomepageGrid.contact.MainTab.Management.Scale.2" Sequence="170" Size="Popup" />
    </CommandUIDefinition>
    </CustomAction>
    <HideCustomAction HideActionId="custom.contact.Button1.Button.Hide" Location="custom.contact.Button1.Button" />
    </CustomActions>
    <Templates>
    <RibbonTemplates Id="Mscrm.Templates" />
    </Templates>
    <CommandDefinitions>
    <CommandDefinition Id="custom.contact.Command0.Bytforetag">
    <EnableRules>
    <EnableRule Id="custom.contact.EnableRule0.EnableRule" />
    </EnableRules>
    <DisplayRules />
    <Actions>
    <JavaScriptFunction FunctionName="Develop1_RibbonCommands_runDialogForm" Library="$webresource:custom_RunDialog">
    <CrmParameter Value="PrimaryEntityTypeCode" />
    <StringParameter Value="D901340B-3AEB-4D51-9FDD-B327568BB9E7" />
    </JavaScriptFunction>
    </Actions>
    </CommandDefinition>
    </CommandDefinitions>
    <RuleDefinitions>
    <TabDisplayRules />
    <DisplayRules>
    <DisplayRule Id="custom.contact.DisplayRule0.DisplayRule">
    <FormStateRule State="Create" Default="false" InvertResult="true" />
    </DisplayRule>
    <DisplayRule Id="custom.contact.DisplayRule1.DisplayRule">
    <CommandClientTypeRule Type="Refresh" Default="true" InvertResult="false" />
    </DisplayRule>
    </DisplayRules>
    <EnableRules />
    </RuleDefinitions>
    <LocLabels>
    <LocLabel Id="custom.contact.Button1.Button.LabelText">
    <Titles>
    <Title description="Byt företag" languagecode="1033" />
    </Titles>
    </LocLabel>
    <LocLabel Id="custom.contact.Button1.Button.ToolTipTitle">
    <Titles>
    <Title description="Byt företag" languagecode="1033" />
    </Titles>
    </LocLabel>
    <LocLabel Id="custom.contact.Button1.Button.ToolTipDescription">
    <Titles>
    <Title description="Byt företag" languagecode="1033" />
    </Titles>
    </LocLabel>
    <LocLabel Id="custom.contact.Button1.Button.Alt">
    <Titles>
    <Title description="Byt företag" languagecode="1033" />
    </Titles>
    </LocLabel>
    <LocLabel Id="custom.contact.Button2.Button.LabelText">
    <Titles>
    <Title description="Byt företag" languagecode="1033" />
    </Titles>
    </LocLabel>
    <LocLabel Id="custom.contact.Button2.Button.ToolTipTitle">
    <Titles>
    <Title description="Byt företag" languagecode="1033" />
    </Titles>
    </LocLabel>
    <LocLabel Id="custom.contact.Button2.Button.ToolTipDescription">
    <Titles>
    <Title description="Byt företag" languagecode="1033" />
    </Titles>
    </LocLabel>
    <LocLabel Id="custom.contact.Button2.Button.Alt">
    <Titles>
    <Title description="Byt företag" languagecode="1033" />
    </Titles>
    </LocLabel>
    </LocLabels>
    </RibbonDiffXml>

  • ScottDurow Profile Picture
    19 on at
    RE: Ribbon Workbench, button not visible

    Hi Simon,

    As Aiden rightly suggests - if you can post your ribbon xml I'll take a look.

    You just need to copy the xml from the Xml tab in the Ribbon Workbench for the entity that you are editing.

    Thanks,

  • Aiden Kaskela Profile Picture
    19,694 on at
    RE: Ribbon Workbench, button not visible

    Hi Simon,

    Can you share the Xml you're getting in the Ribbon Workbench solution? I'm not the best working with the XML directly (which is why I love the workbench), but I'd be happy to take a look.

    Thanks,

     Aiden

  • Community Member Profile Picture
    on at
    RE: Ribbon Workbench, button not visible

    That's what I did. Doesn't work.
    I've published maybe 20 times now, with slight differences each time. So it should have published the changes fine already.
    I also tested to remove the enablerule and just keep a displayrule of "FormStateRule". But it didn't make any difference..

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans