Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Microsoft Power Apps Cookbook
Microsoft Power Apps Cookbook

Microsoft Power Apps Cookbook: Build user-friendly apps, troubleshoot challenges, and navigate the evolving Power Apps landscape , Third Edition

Arrow left icon
Profile Icon Eickhel Mendoza
Arrow right icon
€20.98 €29.99
eBook Oct 2024 438 pages 3rd Edition
eBook
€20.98 €29.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Eickhel Mendoza
Arrow right icon
€20.98 €29.99
eBook Oct 2024 438 pages 3rd Edition
eBook
€20.98 €29.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€20.98 €29.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Microsoft Power Apps Cookbook

App Maker Basics

When comparing technical and culinary cookbooks, you will find certain similarities. Both are based on recipes that introduce the reader to creating something by following detailed instructions.

For example, in Italian culinary books, there is often a chapter describing how to prepare the sauce that many recipes will use throughout the book. The same concept applies to this cookbook. This chapter will explain the basic requirements for the most common scenarios when working on Power Platform recipes.

The following recipes will serve as a template for specific situations throughout the book:

  • How to build a Power Platform solution
  • Preparing tables in Dataverse
  • Building metadata-enabled storage – SharePoint lists and libraries
  • Gathering information with Microsoft Forms
  • Setting up a cloud data source – Azure SQL Database

Technical requirements

Depending on the data source you’ll be working with, you might need proper licensing. Start from the Microsoft 365 Business Basic license for SharePoint through to the Power Apps Premium needed for Dataverse. Please refer to the Preface to get more information about the licensing requirements.

How to build a Power Platform solution

A Power Platform solution consists of a package that stores all the pieces that compose the solution you’ve created to solve your business need. It aids in deployment, distribution, and management. Examples of these pieces can be Power Automate cloud flows, model-driven apps, Power BI reports, or Dataverse tables.

Creating a solution is a straightforward process, but that doesn’t mean you don’t need to follow specific steps to include best practices for your solutions.

For example, if you need to interact with a particular service, the platform uses a connection reference. When working with solution components such as cloud flows, the platform will try to help you by creating connection references for you but using random naming. It becomes even more complicated if multiple solutions exist within a specific environment. One component from one solution might use a connection reference from another without you noticing.

Setting up the connection references before creating components can solve these issues easily. This way, the platform will automatically use the solution’s connection references and the naming pattern you decide.

Getting ready

After creating the solution, we will need to choose a data source to define the steps required to configure a connection reference. For this example, we will use SharePoint.

How to do it…

  1. Go to the Power Apps maker portal, https://make.powerapps.com, select Solutions from the left pane, and click + New solution from the toolbar.
  2. Before describing the solution, click + New publisher and enter the display name and name in the Display name and Name fields respectively. Enter a meaningful two-to-eight-letter Prefix value that will be used for all the elements you will create. Check the Preview of new object name for an example of how a component will be named. Keep the default Choice value prefix and click on Save.
  3. Back in the New solution pane, enter the desired Display name and Name for the solution, select your newly created Publisher, and click on Create:

Figure 1.1: Solution settings

  1. Once the solution is created, from the toolbar, click New | More | Connection Reference.
  2. From the panel that opens, set the Display name to AMPI-SharePoint, leave the Name as it is, and choose SharePoint from the Connector dropdown. If you already have a connection, select it. If not, create one with your credentials by selecting New connection.
  3. Repeat Steps 4 and 5 for any other service your solution might require.

How it works…

This creation process will prepare the solution and open it automatically. The SharePoint connection reference will be available to every component that can use it, such as a cloud flow or a canvas app. This way, we will get a more organized solution for our projects.

Regarding the publishers, from the left pane, click More, Discover all, and then on Publishers inside the App Management section to see the list of all publishers included in the current environment.

Preparing tables in Dataverse

Tables are essential to every data source since they represent the backbone of the data structure. Their designs include column definitions, indexing mechanisms, relationship configurations, and more.

Almost every Power Platform solution requires related tables to support the business process, and that’s why Microsoft Dataverse is a compelling choice. It was created as a business-oriented relational database.

To discover more about the distinctive features that set Microsoft Dataverse apart, please visit https://learn.microsoft.com/en-us/power-apps/maker/data-platform/why-dataverse-overview.

In this recipe, we will learn how to build tables for this database. This will become a standard task for many projects, such as the one showcased in Chapter 3, Building from Data with Model-Driven Apps, where we will create a help desk solution based on Dataverse.

Getting ready

Each table on a database serves a specific purpose. For this example, we will create a table that will hold the data of all the members of a girls’ youth basketball team.

Team players

Display name

Data type

Format

Full name

Text | Plain text (Single line of text)

Text

Jersey number

Number | Whole number

None

Position

Choice | Choice

-

Gear size

Single line of text

Text

Emergency contact information

Multiple lines of text

Text

Table 1.1: Team players table columns

How to do it…

  1. Go to the Power Apps maker portal and open a solution from the list of solutions for the current environment.
  2. From the toolbar, click New | Table | Table. Set the Display name to Team player. The Plural name will change to Team players automatically. Depending on your table’s needs, you might want to Enable attachments, for example, including extra information about the team player, such as parental consent or team enrollment.
  3. Click on the Primary column tab. Enter Full name as the Display name. Remember to choose something your end users can use to select the records when listing them.
  4. Once you have entered all the required information, click Save. The system will start creating the table with the specified primary column and the rest of the business-oriented columns. The table will open automatically once finished.
  5. Click on New | Column from the toolbar. For the Display name field, enter Jersey number, set the Data type to Number | Whole number, and click Save.
  6. Click New | Column again to include the Position column. For Data type, select Choice | Choice. Under the Sync this choice with dropdown, click on New choice:
    1. Set Position as the Display name, and under the Choices section, add the term Point Guard.
    2. Click on New choice to add each of these items: Shooting Guard, Small Forward, Power Forward, Center.
    3. Click Save.
  7. Back on the column configuration, select the previously created choice from the Sync this choice with dropdown, and click Save to continue.

Using global choices is a great way to reuse a Choice column for different tables if they are going to hold the same elements.

  1. Repeat Step 5 to add the Gear size column using Single line of text as the Data type and Text as the Format.
  2. Repeat Step 5 to include the Emergency contact information column using Text | Plain text from the Multiple lines of text section of the Data type dropdown. Leave Text as the Format.

How it works…

Now that we have added all the required columns, the table can be used in our solutions. The following is an example of the Team player table:

Figure 1.2: Team player table base structure

Building metadata-enabled storage – SharePoint lists and libraries

SharePoint Online, included in Microsoft 365, provides the perfect platform for secure content management, collaboration, and communication through dedicated sites.

This platform is commonly used as a data source for Power Apps solutions since it provides Microsoft Lists. This feature allows you to build a table-like storage with rich metadata columns. It’s not comparable to a full-fledged relational database, but it’s simple to use and comes included on most Microsoft 365 licenses. Please refer to Chapter 4, Choosing the Right Data Source for Your Applications, where we will perform a data source performance comparison, including SharePoint.

It also provides document libraries, which are file containers that inherit the same capabilities as Microsoft Lists, enhancing categorization and organization of the file storage, which helps improve business processes.

Getting ready

Since we are using SharePoint as our data source, there are no additional requirements besides a regular Microsoft 365 license. We will create a document library with some metadata columns to improve the library’s categorization.

Player documents

Here are the metadata columns to be added to the document library:

Type

Name

Choice: Photo ID, Medical certificate, Enrollment form

Document type

Date and time

Expiration date

Yes/No

Requires signature

Table 1.2: Library columns

How to do it…

  1. Go to the SharePoint site, which will hold the document library. On the main site page, click on New | Document library, as seen in the following screenshot:

Figure 1.3: Document library creation

This action will open a dialog with options to create the library. Click Blank library and then enter the name and description of the library. Enter Player documents for the name, leave the rest as default, and click Create.

Whether creating lists or document libraries, the platform will try to help you when designing them. Providing options such as From existing list/library, From Excel/CSV will allow you to speed up the creation process.

Templates is another capability that provides metadata examples gathered from many business scenarios.

  1. Once the library opens, click on the + Add column link at the end of the column header, as seen in the following screenshot:

Figure 1.4: The + Add column option

  1. Select the Choice data type from the open dialog and click Next. Enter Document type for Name and click each of the choice examples to replace them for Photo ID, Medical certificate, and Enrollment form. Once completed, click Save.
  2. Repeat Step 2 to add another column. Select Date and time and click Next. Enter Expiration date for the Name and leave the rest as default. Click Save to finish.
  3. Again, repeat Step 2 to add the last column. Select Yes/No and click Next. Enter Requires signature for the Name and click Save to complete the process.
  4. Back in the document library, reorder the columns as you see fit by dragging them. You can also hide columns by clicking on a particular column and selecting Columns settings | Show/hide columns.
  5. Add files to the library by selecting Upload | Files from the toolbar or by dragging them. Once the upload is complete, click Edit in grid view to update the file’s metadata in bulk, like when working with an Excel spreadsheet. Click on Exit grid view when finished.

How it works…

The document library creation process is now complete. If you upload some files, your library should look like the one in the following figure:

Figure 1.5: Player documents library

Gathering information with Microsoft Forms

Web forms are an excellent tool for gathering information. Whether you require feedback from a specific process, an event registration, or even a simple contact form, you must clearly define the fields to collect the data in these forms.

Microsoft Forms gives you an easy way to create them with an easy-to-use interface that allows you to quickly create forms, quizzes, and polls. Most importantly, it offers a way to easily gather information from external users to your organization, as we will discover in Chapter 9, Empowering Your Applications with AI Builder, where we will use this tool to gather possible complaints from our customers.

Getting ready

Microsoft Forms is a service that goes beyond Microsoft 365. You can even use it with your personal Microsoft accounts. However, you must create the forms inside your tenant to use it with Power Platform. For this recipe, we will learn the necessary steps to build a form.

Summer basketball camp registration

Questions to be added to the form:

Field type

Required

Text

Extra

Text

Yes

Child’s Full Name

Text

Yes

Parent / Guardian

Choice

Yes

Campus options

Choices:

2 weeks regular student price

2 weeks external student price

2 weeks sibling’s price

Table 1.3: Form fields configuration

How to do it…

  1. Head to Microsoft Forms by typing this address: https://forms.microsoft.com, and once there, click on the New Form button. This action will open the designer for you to start setting up the form.
  2. Click on the Untitled form text to define the name, description, and image. You can also click Style on the toolbar to change to one of the built-in themes.

The following is an example using one of the immersive styles:

Figure 1.6: Microsoft Forms style

  1. Now, let’s start including fields. A list of options appears to select the type. You can choose from the following field types:

Figure 1.7: Field types available in Microsoft Forms

  1. Click Quick start with and select Text. Change the Question to Child's Full Name and enable the Required setting.
  2. Repeat Step 4 to add the Parent / Guardian question.
  3. Again, click on + Add new question, but this time, select Choice. Replace the Question with Campus options. Replace Option 1 and Option 2 with 2 weeks regular student price and 2 weeks external student price, respectively. Click + Add option to include 2 weeks sibling's price.
  4. Click Preview on the toolbar and, depending on the layout and style of the form, click Start now afterward. You should have a form just like the following:

Figure 1.8: Registration preview

  1. From the toolbar, click on Back to leave the preview mode and click the gear icon to configure who can fill out the form. Regularly, you should select Anyone can respond. You can change it as desired.

How it works…

Now that our form is ready, we could start building Power Automate actions that will get triggered when we receive responses.

Setting up a cloud data source – Azure SQL Database

Azure SQL is a suite of SQL database services on the Azure cloud. It offers automated backups, high availability, and advanced security, making it ideal for traditional SQL database needs with cloud scalability and integration.

While Azure SQL provides extensive control for database management, Dataverse offers a higher level of abstraction for faster and easier development. Depending on the needs of your project, sometimes having granular control of your database is a must.

This recipe will help you build an Azure SQL database that might be needed for an app.

Getting ready

To start working with Azure SQL databases, you will need an Azure subscription. You can request a free version with credit for 30 days to test all the services available on this cloud platform. Apply for it at https://azure.microsoft.com/en-us/free.

How to do it…

  1. Go to the Azure portal at https://portal.azure.com and click Create a resource. This action will take you to Azure Marketplace. Using the search field, enter SQL Database and hit Enter.
  2. From the list of services, select SQL Database and then click Create. This action will open the Create SQL Database page, as seen in the following screenshot:

Figure 1.9: Creating an SQL database from the Azure portal

  1. Select your subscription and a resource group (create a new resource group if necessary). Enter the database name in the Database name field and select a server.

If you don’t have an existing server, click the Create new link below the servers list and enter the required information: a server name and a location close to you for better response times. Leave the default Use Microsoft Entra-only authentication as the Authentication method and click Set admin to look for one user, group, or enterprise application to act as the database administrator. After choosing one, click Select and then OK to create the server.

  1. Select No for the elastic pool setting and choose Development for the Workload environment setting. Click Configure database on the Compute + storage section, change the Service tier to Basic (For less demanding workloads), and click Apply. The Estimated storage cost/month in the Cost summary section on the right should be around USD 5.
  2. Select Locally-redundant backup storage in the Backup storage redundancy section.
  3. Go to the Networking tab and select Yes to Add current client IP address.
  4. Click the Additional settings tab and select Sample from the Use existing data section. Click OK on the dialog that appears.
  5. Select the Review + create tab and then click on Create. This action will start the provisioning of the database.

How it works…

Once the provisioning process is completed, you will be able to access your database.

You can use Azure Data Studio at https://learn.microsoft.com/en-us/azure-data-studio/download-azure-data-studio or the Azure portal itself.

Accessing it through the portal is straightforward as you don’t need to install any software. Just navigate to your database, and from the left pane, click Query editor (preview) and select Continue as <your username> from the Microsoft Entra authentication section.

After authentication, you will be able to interact with the database, as seen in the following figure:

Figure 1.10: Query editor from the Azure portal

This editor will allow you to run scripts from the Query tab or upload scripts using the Open query option from the toolbar.

Join our community on Discord

Join our community’s Discord space for discussions with the authors and other readers:

https://packt.link/powerusers

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Explore how to build apps without custom IT development
  • Accelerate development with the AI-powered Microsoft Copilot as your virtual app making partner
  • Create intuitive and responsive interfaces with canvas app UI elements

Description

In the rapidly evolving world of low-code development, Microsoft Power Apps stands out as a powerful platform for building custom business solutions. Microsoft Power Apps Cookbook, 3rd Edition, is your hands-on guide to mastering this platform. Through a collection of step-by-step recipes, this updated edition helps you navigate the latest features, such as AI-powered Microsoft Copilot and custom UI elements while empowering you to build efficient and scalable apps. This book emphasizes practical solutions, guiding app makers through building everything from canvas apps to complex data integrations. You will learn how to streamline repetitive tasks using Robotic Process Automation (RPA) and explore how to create external-facing websites using Microsoft Power Pages while handling data management with Dataverse and extending app functionality with the Power Apps Component Framework. Whether you're extending your app's capabilities with custom components or integrating advanced AI features, Microsoft Power Apps Cookbook equips you with the knowledge and skills to take your app development to the next level.

Who is this book for?

This book is targeted at information workers and app makers wanting to develop custom applications for their organizations or the projects they are undertaking. Traditional app developers will also find this book useful by discovering how to use a rapid application development environment with increased productivity and speed. Readers are expected to have prior exposure to the Microsoft Power Platform ecosystem.

What you will learn

  • Develop responsive apps with Canvas and Model-Driven frameworks
  • Leverage AI-powered Copilot to accelerate your app development
  • Automate business processes with Power Automate cloud flows
  • Build custom UI components with the Power Apps Component Framework
  • Implement data integration strategies using Dataverse
  • Optimize your app for performance and smooth user experiences
  • Integrate Robotic Process Automation (RPA) and Desktop flows
  • Build secure, scalable, external-facing websites using Microsoft Power Pages

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 31, 2024
Length: 438 pages
Edition : 3rd
Language : English
ISBN-13 : 9781835462485
Vendor :
Microsoft
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Oct 31, 2024
Length: 438 pages
Edition : 3rd
Language : English
ISBN-13 : 9781835462485
Vendor :
Microsoft
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
Banner background image

Table of Contents

15 Chapters
App Maker Basics Chevron down icon Chevron up icon
Building Pixel-Perfect Solutions with Canvas Apps Chevron down icon Chevron up icon
Building from Data with Model-Driven Apps Chevron down icon Chevron up icon
Choosing the Right Data Source for Your Applications Chevron down icon Chevron up icon
Automating Processes with Power Automate Chevron down icon Chevron up icon
Extending the Platform Chevron down icon Chevron up icon
Improving User Experience Chevron down icon Chevron up icon
Power Apps Everywhere Chevron down icon Chevron up icon
Empowering your Applications with AI Builder Chevron down icon Chevron up icon
Discovering the Power Platform Admin Center Chevron down icon Chevron up icon
Tips, Tricks, and Workarounds Chevron down icon Chevron up icon
Advanced Techniques with the Power Apps Component Framework Chevron down icon Chevron up icon
Reaching Beyond the Organization with Power Pages Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.