Ribbon Workbench In Dynamics 365

Introduction

The Ribbon Workbench for MS Dynamic CRM is a tool written to make customizing the Ribbon easier and quicker. The Ribbon is the user interface element that appears at the top of all recent Microsoft Applications, and was the successor to the old ‘toolbar’. Rather than have a single toolbar that was full of all command buttons and a set of drop-down menus that could be multiple layers deep.

The Ribbon Workbench for CRM was written to provide a ‘drag and drop’ developer experience that allows all customization scenarios to give complete control over your CRM ribbon & command bar!

Microsoft Dynamics CRM

Microsoft Dynamics CRM is available as a cloud offering or an on-premises installation. As with CRM 4, this version can be highly customized using advanced extensions. New features include visualizations, dashboards, document management, grid filters, dialogues, recurring appointments, custom activities, goal management, fetch-based reports, MAPI-based Outlook clients, FLS VISITOURS, and more.

Ribbon Workbench Button

As per the screenshot, we can see the ribbon workbench button in the solution. If this button is not available then we have to import ribbon workbench solution from here.

Ribbon Workbench in Dynamics 365

Step 1

Once the ribbon workbench button is visible, we will click and open the solution where we need to add/modify the custom button. To open the solution have to search your solution and click ok.

Ribbon Workbench in Dynamics 365

Step 2

Once Solution is loaded we will fill following details

  1. As per the screenshot, we have to select the entity which entity we need to add custom buttons.
  2. The Toolbox where we can choose different types of buttons like (button, split button, button menu, etc.)
  3. We can drag the button where we need to show it.
  4. We need to set the button id’s
  5. We need to set the Button label and tooltip
  6. Every button should have a command event

Ribbon Workbench in Dynamics 365

Step 3

For adding Button Command do the following steps

  1. Add new command with click on the plus icon (please check below screenshot with count 1)
  2. Set the command id
  3. Need to add custom JavaScript Action(Library and Function Name)
  4. Library- Need to search existing JavaScript files and set
  5. Function Name- set the function name from the JavaScript file.
  6. After all, details are set we have to publish the current changes.

Ribbon Workbench in Dynamics 365

Step 4

After publishing our changes we can verify button visibility and click event.

  1. As we can see when we click the “sync data” button we got the popup “click Event Fire !” : )

Ribbon Workbench in Dynamics 365

Display Rules

Based on the display rules we can Hide/Show the button based on the different rules like entity field values (ValueRule), based on the entity privilege rule, etc.

  • Add New Display rule from click plus icon.
  • Set the display rule id
  • Add display rule (ValueRule) set the entity field name and entity field value.

Ribbon Workbench in Dynamics 365

Output

Ribbon Workbench in Dynamics 365

Summary

In this write-up, we discussed Ribbon Workbench in MS Dynamic 365.

In my next article, we will discuss inline grid editable features and custom grid filters based on the fetch XML.


Similar Articles