web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unified Interface - ApplicationRibbon button not showing when a record is selected

(0) ShareShare
ReportReport
Posted on by

Hi,

Been pulling my hair out and cannot find a solution for this issue.

We have a ribbon button added to the Home section (entity views) of the ApplicationRibbon (global). It has a custom JS enable rule. Which will return true if a certain configuration record exists.

It follows the standard flow of:
- Have some result in a global variable

- If the result is null (not yet checked) - do a request to retrieve it. Because it's async afterwards call refreshRibbon(true); return false

- Depending on the result return true or false

It works fine in the classic UI (&forceClassic=1) both when no records are selected and when some records are. In the unified UI the moment I select a record (or multiple) the button disappears. I have checked in the browsers developer tools and the JS enable rule function is called and returns true (synchronously). 

Is this a bug in the unified UI or am I doing something wrong here?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Lukasz Kowalski-Glikman Profile Picture
    on at

    Found the solution: https://support.microsoft.com/en-gb/help/4481268/button-in-command-bar-does-not-appear-after-grid-item-selection

    In the definition of their Custom Ribbon Command, add the following rule:

                <EnableRule Id="Mscrm.AnySelection" />

  • LiveCode Profile Picture
    20 on at

    In Unified Interface, there have to be enable rule for home view: Mscrm.AnySelection, Mscrm.SelectionCountExactlyOne ...

    Export solution with entity metadata and add enable rule e.g.

    <CommandDefinition Id="....">

               <EnableRules>

     <EnableRule Id="Mscrm.AnySelection" />

               </EnableRules>

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans