web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Aiden Kaskela Profile Picture
    19,696 on at

    Hi Simon,

    Sometimes the ribbon can cache and give you the old info. Have you tried opening CRM in an In Private browsing session to ensure you're getting the most up to date information from the server?

    Thanks,

     Aiden

  • Royal King Profile Picture
    27,686 on at

    remove display rule and in the enable rule choose FormState  and set to existing this will show button only for already exisitng record.

  • Aiden Kaskela Profile Picture
    19,696 on at

    You might want to try republishing the customizations again. Scott (who wrote the ribbon workbench) previously suggested "try publishing again since sometimes the first time doesn't clear the cache." community.dynamics.com/.../178324

  • Renato Vieira Profile Picture
    30 on at

    blog.cobalt.net/.../ribbon-workbench-solution

    Try using the steps in the link above. It worked fine for me.

  • Community Member Profile Picture
    on at

    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..

  • Aiden Kaskela Profile Picture
    19,696 on at

    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

  • ScottDurow Profile Picture
    21 on at

    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,

  • Community Member Profile Picture
    on at

    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
    21 on at

    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

  • ScottDurow Profile Picture
    21 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans