What are Components?
At the beginning of 2019, the PowerApps team introduced a new feature called components that allowed users to create pieces of functionality that could be packaged and duplicated across screens and even different apps. This is an experimental feature for the moment, however the capability has still been proven to be effective and quite handy.
Here at Kumo Partners, this functionality is a pivotal part of how we are able to offer our solutions to our partners and clients. This post is meant to be a guide for how users can download and install our applications and get them familiar with how the tooling works. This post will cover:
- Turning On the Components Feature in Your App
- Importing a Kumo Component file (.msapp file)
For the solutions that Kumo Partners offer we will mostly be using components as a means of importing the related content into your app directly. As a result, we will handle how to configure components in a separate post later on.
I. Turning On the Components Feature
- Open up a new or edit an existing app in the App studio (https://web.powerapps.com).
- Once the app is open, go to File > App Settings > Advanced Settings.
- In the section called “Experimental Features” towards the bottom of the settings, you will find the ability to enable components.
- Once turned on, you will see them on the left hand side of the studio screen in the Tree View.
II. Importing a component file into your app
Now that we have the feature turned on, we can now try to import (and eventually export) a component file. At the moment components are managed as .msapp files (which is the same as the full PowerApps themselves) so make sure to use clear naming conventions when importing and exporting.
Starting with a Ready-To-Go component
If you are reading this most likely you are either looking to import one of our solutions into your own app or you’re simply curious how components work. Either way, we will be using one of our own Better Timer component to finish the rest of the post. Once you have it downloaded (the .msapp file) you can follow the steps below.
Steps to Import
- Open your app with the components feature turned on.
- Under the Insert Tab > select Components > Import Component.
- This will present you a wizard to either import a component from another app or to upload a component file. In this case we want to upload either the component we linked earlier or your own.
- Once successfully uploaded, you will now see on the left hand side the “Screens” and “Components” sections of the tree view. The “Components” section should now have your imported component.
- Select the imported Component from the Components list on the left and review it’s contents.
Our components are structured in a way to make this process as simple as possible and have notes provided inline to help the user be able to get this up and going. If you are not using are components the steps below may note apply.
- Within the white space, you can click and then drag to select multiple items and once selected click Ctrl + C to copy the content to your clipboard.
- Now on the left hand side select the screen you would like to copy the content too and once it appears, hit Ctrl + V to paste the content onto the screen.
- The Content will now appear (and the red errors should also go away as well).