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)

Removing command bar buttons from unmanaged solution.

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

I wonder if someone might be able to point me in the right direction..

Our previous developer created some custom buttons on the opportunity entity and I'm trying to remove them.

What he did was to create the custom button in the ribbon workbench but then instead of using the enable rules to hide or show the button based on the name of the form that has loaded, he moved the xml from the entity element to the systemform element in the customisations XML.

It's fine, it works, but it's causing me a few problems now, so I need to remove these buttons and add new with enable rules to make sure it will stay supported and because I now need to add more buttons.

The buttons don't show in the ribbon workbench because of where the XML is placed, so I am stuck manually editing the XML file. 

So the problem I have is that after exporting our unmanaged solution in the dev environment, editing the XML to remove the buttons and reimporting then publishing the customisations, the buttons still appear on the forms.

What's even more frustrating about it is if I export the default solution, the buttons don't exist in the XML, I can't figure out where they are coming from.

Anyone got any ideas?

Cheers
Chris

------------------------------
Chris Messam-Gates
Arsenal Football Club
London
------------------------------

*This post is locked for comments

I have the same question (0)
  • Gopalan Bhuvanesh Profile Picture
    11,401 on at

    Hi

    The definition for custom buttons would be only inside the <RibbonDiffXml>.

    You can check this XML definition within Ribbon Work Bench using the XML option, or the solution.

    This would show full Ribbon Customization definition (<RibbonDiffXml>) for Opportunity entity.

    You have mentioned that you have checked it already.

    Look for

    Location="Mscrm.HomepageGrid.opportunity

    Location="Mscrm.Form.opportunity

    You can also (sanity) check the ApplicationRibbon.

  • Community Member Profile Picture
    on at

    Hi Gopalan,

    Thanks for that, I have already checked every where for the RibbonDiffXML in every possible location, it doesn't exist.

    I have removed all traces of it form the solution, but the buttons are still rendering...

    Cheers

    Chris

  • ashlega Profile Picture
    34,477 on at

    Hi Chris,

     I am wondering if you have any managed solutions in there that might include the buttons?

  • Community Member Profile Picture
    on at

    Sorry for the late reply.  Been busy with other tasks this sprint.  

    Thanks Alex, I already thought of that, the only solution that contained the opportunity entity was the opp one created for use with the ribbon workbench, it was unmanaged anyway but I removed it already.  same result.

    As far as I can tell, none of the other solutions contain anything to do with opportunities!

    There is no trace of the buttons ribbondiffxml anywhere in any solutions as far as I can tell, but they are still rendering.

    It is driving me mad now!.

    Cheers

    Chris

  • Suggested answer
    Marius Agur Pedersen Profile Picture
    1,771 on at

    Have you tried using the sitemap editor in XrmToolBox? It is probably the best tool to get the job done, and it doesn't require you install solutions in your organization:

    xrmtoolbox.codeplex.com

  • Community Member Profile Picture
    on at

    Hi Marius,

    It's not the sitemap I want to edit.  It's the command bar.

    Chris

  • ashlega Profile Picture
    34,477 on at

    Hi Chris,

     if we step back for a moment.. If you create a solution and include opportunity entity into that solution, then export it (not the default solution).. Do you see those buttons in the XML?

     Also, maybe you could post a few screenshots so we could see the buttons (and the XML from that opportunity-only solution.. probably ribbondiff and, then, you mentioned some other place.. anyway, wherever the buttons are mentioned if they are mentioned at all).

  • Community Member Profile Picture
    on at

    Hi Alex,

    Again the same result, I cannot find any mention of the buttons in the XML.  I have checked all the solutions, third party and the ones created for the ribbon workbench and the opportunity entity isn't included in any of them.

    These are the button...

    WithButtons.PNG

    the ribbondiffxml was moved to the formxml element between hidden controls and tabs. which is a supported location... [View:https://msdn.microsoft.com/en-gb/library/gg309429.aspx:750:50]

    I've got multiple environments so I can show you with and without the button xml, this is with it so you can it's pretty easy to find, so it's not like i'm missing it!!

    WithButtons.PNG

    And this is the same form in the dev environment I am removing the buttons from, as you can see the ribbonDiffXML is not there at all and searching the whole solution in a text editor it doesn't exist.

    WihtoutButtons.PNG

    I spoke to Scott Durow about it at the recent CRMUG summit in Amsterdam and he basically said, he chose not to support this customisation with Ribbonworkbench for various reasons, that's why it doesn't show in ribbon work bench when I look at the solution.  He also advised I try and remove it to make sure our solution stays supported.

    I am sort of thinking now that rather than fighting with it, I just start again... deactivate the forms that these buttons are on and create new with the correct enable rules. 

    Thanks for everyone's suggestions up to now.

    Cheers

    Chris

  • Community Member Profile Picture
    on at

    Just thought I'd add!!! I'm really trying to remove it than give in and create new forms, I just feel like I shouldn't let it beat me!!!

  • ashlega Profile Picture
    34,477 on at

    Hi Chris,

      I did not actually know ribbonDiffXml is supported - well, at least somehow supported - per form. I'm guessing the solution you have exported has all the assets for that entity, right? (still can't believe what you see there:)) )

      Just out of curiosity, did you try saving that form as a different form? Will the button still show up for the new form? If it won't, maybe it's a compromise then (just save them "as" new forms)

      

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