dynamics-crmdynamics-crm-onlinedynamics-365dynamics-crm-365crm-ribbon-workbench

How can I add a View button display rule in Dynamics 365 online Ribbon Workbench?


I want to add a display rule for a view button which is visible when a record selected from view and hidden when record not selected. Which one of the rule types below is appropriate?

enter image description here


Solution

  • You have to use Enable rule - SelectionCountRule to customize a ribbon/command bar button. If it’s disabled, obviously not going to be displayed (which is like Display rule).

    <EnableRule Id=”Sample.account.grid.OneSelected.EnableRule”>
      <SelectionCountRule AppliesTo=”SelectedEntity” Maximum=”1″ Minimum=”1″ />
    </EnableRule>
    

    enter image description here

    enter image description here

    Read more