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)

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

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