Command Designer with Power FX

| Ijlal Monawwar

With the 2021 release wave 2 of Dynamics 365, Microsoft has introduced new features with significant capabilities to transform our businesses. One of the features is the ability to customize the command bar for entities within the new model driven app designer using Power Fx. Every model-driven app makes use of command buttons and they can be placed on homepage grid, forms and subgrids in order to add custom business logic to our app.

To get started, first we need to login to make.powerapps.com

CommandDesignerPowerFX

Create a new model driven app with modern app designer (preview)

CommandDesignerPowerFX

Now, create the app after naming it.

CommandDesignerPowerFX

In the app designer, select any table from the Pages section and then choose the page type Table based view and form. Select the Edit command bar.

CommandDesignerPowerFX

Click on three dots for the added entity and click on Edit command bar (preview)

CommandDesignerPowerFX

Choose the area where you want to add the command button. In my case, I’ll add the button in the Main Form of the entity.

CommandDesignerPowerFX

Click on + New command under the Commands section.

CommandDesignerPowerFX

After adding the button, we either have the option to “Run formula” or add a javascript command. “Run formula” utilizes the new Power fx functionality for the commands.

CommandDesignerPowerFX

After adding the command, we can Save and publish the app and then Play to see the button in action.

CommandDesignerPowerFX

Join us next time, as we continue our journey of learning canvas apps.Click here to learn more about Imperium's Power Apps Services. We hope this information was useful, and we look forward to sharing more insights into the Power Platform world.


M
Chief Architect, Founder, and CEO - a Microsoft recognized Power Platform solution architect.

About The Blog

Stay updated with what is happening in the Microsoft Business Applications world and initiatives Imperium is taking to ease digital transformation for customers.


More About Us

We provide guidance and strategic oversight to C-Suite and IT Directors for on-going implementations. Feel free to give us a call.

1 331 250 27 17
Send A Message

Ready to Start?

Get a personalized consultation for your project.

Book a Meeting