Skip to main content

Notifications

Announcements

No record found.

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

  • LiveCode Profile Picture
    20 on at
    RE: Unified Interface - ApplicationRibbon button not showing when a record is selected

    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>

  • Suggested answer
    Lukasz Kowalski-Glikman Profile Picture
    on at
    RE: Unified Interface - ApplicationRibbon button not showing when a record is selected

    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" />

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
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans