<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=612681139262614&amp;ev=PageView&amp;noscript=1">
Skip to content

Need help? Talk to an expert: phone(904) 638-5743

Low to Pro - Learn How to Upgrade Ribbon Commands! | Power Apps Tutorial

Low to Pro - Learn How to Upgrade Ribbon Commands! | Power Apps Tutorial

In this tutorial from the "Low to Pro" series, Ace Phillips walks viewers through enhancing ribbon commands in Power Apps using JavaScript and XRM Toolbox. While Microsoft’s Power FX update introduced new capabilities, it also brought limitations. Ace demonstrates how to overcome these by integrating custom JavaScript actions and navigating to custom pages.

 

 

 

Why Not Just Use Power FX?

  • Power FX commands are limited in scope and functionality
  • Not all Power FX functions are supported in command customization.
  • Ace proposes a workaround using JavaScript and XRM Toolbox.
  •  

Step-by-Step: Enhancing Ribbon Commands

  1. Create a Solution: Include only the table you want to modify. Avoid selecting objects to prevent errors in Ribbon Workbench.
  2. Install XRM Toolbox: Use the tool library to install Ribbon Workbench and connect to your environment.
  3. Open Ribbon Workbench: Load your solution and identify existing and custom buttons.
  4. Add a New Button: Use a specific ID format (e.g., mscrm.openrecorditem) for consistency.
  5. Create a JavaScript Command: Add a web resource and define a function (e.g., pw.lowtopro.gridcommands.openRecordCommand).
  6. Set Parameters: Use CRM parameters like FirstSelectedItemId and the custom page name.
  7. Publish and Test: Click a record to navigate to the custom page and verify functionality.
 

Bonus: Show/Hide Sections with JavaScript

Ace also demonstrates how to toggle visibility of form sections using a button:

  • Create a new button labeled “Show/Hide Section.”
  • Use a JavaScript function like pw.lowtopro.formcommands.showHideSection.
  • Pass parameters: PrimaryControl (form context), tab name, and section name (e.g., “General” and “Address”).
  • Publish and test the toggle behavior on the form.
  •  
 

Additional Tips

  • Use enable rules to control button visibility based on record selection.
  • Explore additional functions provided in the downloadable script.
  • Ace offers a beginner-friendly JavaScript course on Pragmatic Works’ ODL platform.
  •  

Whether you're new to Power Apps or looking to go pro, this tutorial equips you with practical tools to enhance your app’s interactivity and user experience.

Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power Apps  and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks. 

Sign-up now and get instant access

Leave a comment

Free Trial

On-demand learning

Most Recent

private training

Hackathons, enterprise training, virtual monitoring