The PowerApps component framework (PCF) lets developers build re-usable code snippets called “Components” for model driven and canvas applications. The components can be used in multiple applications to enhance the user experience and drive a business use case. One of the examples I’ve run into is using the map functionality in the PCF to reuse maps of sales territories across different organizational applications and dashboards. The advantage there is that you can tie the component to the dataset behind the scenes and save yourself hours of work.
This blog post will run through the process of getting you started with the PCF, for more information on building a component with the PCF look out for part 2!
Step 1: Install Node.js
- Download the current version of Node.js here.
- Note: Make sure you download the correct version for the computer you are using.
- Open the MSI file that gets downloaded as a part of the installation.
- Run through the installer. Selecting the defaults is fine for our purposes.
For more information on Node.js check out their About page here.
Step 2: Install Visual Studio Code
Visual Studio Code is a light-weight IDE that is all we need to develop PowerApps components. Using Visual Studio or another IDE would work as well, but I’ve found that Visual Studio Code is good at what it does and pretty light-weight for its functionality.
- Download Visual Studio Code from here.
- Run the installer that gets downloaded. Selecting the defaults is fine for our purposes.
For more information about Visual Studio Code click here.
Step 3: Download the PowerApps CLI
PowerApps CLI is a basic command line editor that gives you more ALM tooling when working with the PCF.
- Go to this page.
- Select “Install PowerApps CLI”. See image below.
- Run the installer that gets downloaded.
Step 4: Update PowerApps CLI
This step is technically optional, but it’s always good to verify that you have the latest version of the PowerApps CLI. In order to verify, do the following:
- Open the PowerApps CLI
- Navigate to the directory that PowerApps CLI is stored in
- Run the following command:
pac install latest
One of the common issues that I’ve found when running users through the process is that sometimes users will need to install part of the .NET Framework to get started. If you are running into issues try downloading .NET Framework Developer Pack from here.
Next Steps with the PowerApps Component Framework
Now you are all setup to start using the PCF to develop reusable components. Look out for a follow up post on building your first component!