Another XRMToolBox Plugin that I have been using for the past years very regularly is the Ribbon Workbench by Scott Durow. The Plugin or the standalone Version of the ribbon Workbench are great tools and offer lots of functionality to improve the user experience by adding buttons to the command bars in the Model Driven App – either in Dynamics 365 CE applications or in custom Power Platform Model Driven apps.

Last week I stood up incredibly early to join the Vancouver User Group in which Scott Durow presented some insights of the new Commanding feature in Model Driven Apps. But what does Commanding mean and what it is offering for us related to the Ribbon Workbench?

For me – as a non-developer – it is a game changing feature that Microsoft is offering us in Model Driven Apps as part of the Power FX language. Commanding allows us, to directly create new buttons inside the Power Platform Maker Portal and adding logic to them by leveraging Power FX, the language we are using in Canvas Apps. And we can not only use Power FX, but it is also supporting IntelliSense as well and therefore adding a huge help to the feature.

Besides, working with Power FX is so much faster than working with the Ribbon Workbench before. Just apply your changes and click Save and Publish afterwards.

In my example below, I just want to set all Marketing attributes related to email activities to do not allow on the Account table. As mentioned above entering the Power FX logic is done the same way, you might be used in Canvas Apps.

Step by Step:

  1. Opening your solution in the new Solution Editor (the solution should contain your app already)
  2. Select the App and click on the … to select Edit –> Edit in preview
  3. Select the Table you want to edit, e.g., Accounts and click on the … and select Edit command bar (preview)

4. In the dialog select the command bar you want to edit. The dialog offers four different command bar options. As I want to add a new button to the account form, I am selecting Main form

Note: All existing buttons cannot be edited with the new option. So, if you need to work with these – please continue working with the Ribbon Workbench. If you have a new button and the use case matches the Power FX requirement, try the new feature – but remember it is still in preview.

5. Click +New Command to add a new button to the command bar.

Note: You can change the position of the new button by drag and drop.

6. On the right side you have different options, e.g. naming the button by editing the label, adding an Icon either by using an existing one or by using a webressource, entering a tooltip, etc.

7. On the top as used in canvas app editor you can specify the logic

8. For my use case I am entering the following logic:

{‘Do not allow Bulk Emails’:’Do not allow Bulk Emails (Accounts)’.’Do Not Allow’},
{‘Do not allow Emails’:’Do not allow Emails (Accounts)’.’Do Not Allow’},
{‘Follow Email Activity’:’Follow Email Activity (Accounts)’.’Do Not Allow’}


“Email Marketing not allowed”

In my next blog post I will advance the button a bit by adding additional functionality

No responses yet

Leave a Reply

Your email address will not be published.