Add Global Command Button in Dynamics 365

Introduction to Global Command Bar

The Global Command Bar in Dynamics 365 allows organizations to provide quick access to frequently used actions across the entire application. Unlike entity-specific buttons, global command buttons remain available throughout the application and can be accessed from any page.

What is the Global Command Bar?

The Global Command Bar is the command area displayed at the top of the Dynamics 365 Unified Interface. It provides access to: Global Actions, Search Features, Application Commands, Custom Buttons, and Productivity Tools.

Why Use a Global Command Button?

Organizations commonly use global buttons for: Opening Custom Pages, Launching External Applications, Creating Records, Running JavaScript Actions, and Navigating to Dashboards.

Solution Overview

The workflow for adding a Global Command Button involves: User Clicks Button, Global Command Bar, Execute Command, JavaScript Action, Perform Business Logic, and Display Result.

Prerequisites

Before starting, ensure you have: Dynamics 365 Environment, System Administrator Access, XrmToolBox, Ribbon Workbench, and Solution Customization Permissions.

Step-by-Step Guide

  1. Create a Solution: Navigate to Power Apps, Solutions, and create a new solution.
  2. Add Application Ribbon: Open the solution, select Add Existing, More, and Application Ribbon.
  3. Open Ribbon Workbench: Launch XrmToolBox, Ribbon Workbench, and connect to your Dynamics 365 environment.
  4. Locate Mscrm.GlobalTab: Inside Ribbon Workbench, navigate to Home, Mscrm.GlobalTab.
  5. Add a New Button: Drag and drop a Button into Mscrm.GlobalTab, and configure Button Label, ToolTip, Icon, and Sequence.
  6. Create a Command: Create a new Command, and attach a JavaScript Action, URL Action, or Power Apps Action.
  7. Create JavaScript Web Resource: Add a JavaScript Web Resource, and register the function in the Command definition.
  8. Configure Enable Rules: Enable Rules determine when the button should appear.
  9. Publish Customizations: After configuration, refresh Ribbon XML, save, and publish.

Real-World Example

Global Create Case Button: Users can create support cases from anywhere in Dynamics 365.

Common Use Cases

Best Practices

Benefits

Improved Productivity, Better Navigation, Consistent Experience, Flexible Customization, and Enterprise Scalability.