Book Image

Extending Microsoft Power Apps with Power Apps Component Framework

By : Danish Naglekar
Book Image

Extending Microsoft Power Apps with Power Apps Component Framework

By: Danish Naglekar

Overview of this book

Power Apps Component Framework is used by professional developers to extend the capabilities of model-driven and canvas apps. Extending Microsoft Power Apps with Power Apps Component Framework will take you through the basic as well as advanced topics using practical examples. The book starts by helping you understand the fundamentals of the framework, its lifecycle, and the tools that you'll use to build code components using best practices and file management guidelines. You'll then learn how to extend Power Apps step by step and apply the principles and concepts covered in the book to build code components for field type attributes. The book covers different ways of debugging code components and guides you through the process of building code components for datasets. You'll also explore the functions and methods provided by the framework to enhance your controls using powerful sets of libraries and extensions. As you advance, you'll get to grips with creating and managing authentication profiles, discover different ways of deploying code components, and configure code components in model-driven and canvas apps. Finally, you'll learn some of the important features of the framework and learn modern web development practices. By the end of this Power Apps book, you'll be able to build, debug, enrich, and deploy code components confidently.
Table of Contents (18 chapters)
1
Section 1: Fundamentals of the Power Apps Component Framework
6
Section 2: Building and Managing Code Components
12
Section 3: Enhancing Code Components and Your Development Experience

Working with external devices

When applications allow you to interact with external devices, it enhances the user's experience and provides meaningful data. This is exactly what the Power Apps component framework offers: the ability for us to work with external devices and capture correct data. In this section, we are going to learn how to harness the power of interacting with devices such as audio, video, images, barcodes, locations, and select files.

We will be creating a simple code component that will utilize all these external devices. This code component will contain a button for each of the device functions provided by the framework. Since we have six functions, we will be adding six buttons to the UI in the code component. Each of these buttons will have their own function on the click event.

Before you begin adding the code, you must enable the necessary features in the manifest file. As we will be utilizing all the device's features, we will only enable the...