Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Microsoft Power Apps Cookbook, 2e
Microsoft Power Apps Cookbook, 2e

Microsoft Power Apps Cookbook, 2e: Apply low-code recipes to solve everyday business challenges and become a Power Apps pro , Second Edition

eBook
€26.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
Product feature icon AI Assistant (beta) to help accelerate your learning
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, 2e

Building Pixel-Perfect Solutions with Canvas Apps

Power Apps is the platform of choice for building business solutions using a low-code method. This approach enables the rise of the citizen developer, a being inside every organization who is keen on learning technology, which also brings the expertise of the business process to which this person belongs.

Canvas apps allow the creation of pixel-perfect implementations of user interfaces. As the name suggests, they bring a variety of tools to build any imaginable design into your applications, allowing you to design and develop apps of any type, whether a critical business system or a simple tracking application.

During this chapter, we will discover how to create a set of applications that will give you an insight into different styles when building canvas applications: standalone and embedded. We will also learn how to set up different types of data sources for our applications.

This chapter consists of the following recipes:

  • Discovering best practices when building canvas apps
  • Creating an incident tracking solution – setting up the data source
  • Creating an incident tracking solution – building the user interface
  • Embedding an expense tracking list with SharePoint list Power Apps
  • Creating a canvas app from existing data

Discovering best practices when building canvas apps

Setting up data sources, defining business process flows, creating user interfaces; all these tasks are pieces of an application-building process. These pieces come together to accomplish one main goal: to build a solution that solves a specific need.

One of the things you need to consider is the maintainability of your app. Whether fixing bugs or adding new features, using best practices is always a good idea. No matter your technology, well-documented code is easier to maintain.

Even though Power Apps is a low-code platform, you must consider certain things before building applications. Like any other developer team, you need to establish code standards. These standards allow your team to be more productive by setting predefined patterns for variable naming, control usage, and coding methodology.

Variable naming

Proper naming gives your developers instant insight into the scope of your variables. For example, if a variable name prefix starts with lcl (short for local), it means its value will only be available on the current screen. On the other hand, using gbl (short for global) means that this variable is accessible across the whole application.

These examples might seem trivial, but if another developer needs to maintain your app or if your app serves as a template for other apps in your organization, setting these patterns from the start can help the application-building process and maintainability.

Control usage

One of the vital elements of an application’s success is performance. If an application is slow to start or takes several seconds to perform a task, it hurts user adoption.

Here are a couple of examples of this:

  • A great-looking app that uses many controls to build its user interface but hurts performance each time the screens get rendered.
  • Displaying data to the user using a gallery inside a gallery. This approach might be tempting to present master-detail data, but this would be a significant slowdown in your application.

To avoid this, you need to learn the performance points of your platform. In Power Apps, one of the main recommendations for improving responsiveness is to reduce the number of controls.

Coding methodology

This concept describes a set of rules to regulate the development process in a low-code team. Your solution infrastructure can also help you make an informed decision on how to build your application:

  • If you have data that rarely changes, you can create collections to avoid round-trips each time data is required. Even more, if you have data that never changes, you can import this as static data inside your app for speedier access.
  • Taking advantage of the features available in your data source can significantly improve your application performance. For example, when using Dataverse or a relational database, there is a significant difference when querying data if you use data source views instead of building the actual query in your application logic, especially if it needs complex relationships. Using these views gives you cleaner code while also enhancing performance. This improvement relies on the data source engine as it is the one that executes the data processing instead of the application itself.

These are examples of practices you can coordinate with your team when building apps. For a detailed list of best practices, please refer to https://powerapps.microsoft.com/en-us/blog/powerapps-canvas-app-coding-standards-and-guidelines/

Creating an incident tracking solution – setting up the data source

Tracking processes is a necessity for customers everywhere. As in any development process, the first step is to gather all the requirements needed to fulfill the business need; this will then help us design the data structure to support our application.

As for the data source, this recipe will set up the required fields in a SharePoint list while also applying certain settings to make it as performant as it should be.

Getting ready

Before diving into developing solutions with Power Apps, you will need a Microsoft 365 subscription. Please refer to the Preface section for suggestions on getting a playground to build your apps.

We will use SharePoint as the data source for this recipe, so we will start by creating a list. The actual list creation process is pretty straightforward, leaving plenty of time for our application design.

SharePoint Online performance considerations

When working with SharePoint Online, you need to remember that we are working on a web application with specific response and performance levels to provide the best user experience. To meet this, Microsoft has set a view threshold of 5,000 elements per list. Even though a list can hold up to 30 million items, querying data exceeding this limit will result in platform errors, making the list unresponsive.

These are a few recommendations to keep your lists performant:

  • Set an index for the columns you wish to filter. Remember to do this beforehand since you cannot change it if you have exceeded the threshold.
  • Prepare views for lists that might carry a large number of items by segment. Examples can be categories, years, and departments.
  • Build your views with fewer than 12 People, Lookup, or Managed metadata fields to avoid performance issues.

For reference on this subject, check out the following links:

How to do it…

  1. Go to your SharePoint site. We will need to create two lists.
  2. Select + New and then List. This action will open a dialog with several list templates for you to select. Click on Blank list, input Clients as the Name, leave the Description field blank, and click on Create. This action will create a list with a default structure:
Graphical user interface, application  Description automatically generated

Figure 1.1: List creation procedure

  1. To add and update columns, click on the gear icon in the top-right corner and select List settings. This action will open all the configuration options for this list, but we will be focusing on the Columns section.
  2. First, click on the Title column to edit it. We are doing this for user interface reasons. This field lets you open the selected record quickly from the list view, so we will set it as the client’s name. Once it opens, rename the column name to Name and click OK.
  3. To add the rest of the fields, click Create column and set the column name and type as seen in the following table:

Column name

Column data type

Required

Name

Single line of text

Yes

Address

Multiple lines of text

No

Phone

Single line of text

No

Email

Single line of text

No

Table 1.1: Clients list columns

  1. When adding the Address column, specify the type of text to be Plain text to prevent formatting issues later when designing your app. We need to make this change because, otherwise, SharePoint will store this data in HTML to maintain the formatting and will make the text look different from the rest of the app.
  2. Repeat steps 2 and 3 for the Incidents list. Rename the Title column to Incident and set the columns as seen in the following table:

    Column name

    Column data type

    Required

    Incident

    Single line of text

    Yes

    Customer Name

    Lookup

    Yes

    Date

    Date and Time

    Yes

    Priority

    Choice

    Yes

    Comments

    Multiple lines of text

    No

    Table 1.2: Incident list columns

    The Choice type means that it will use a list of items to choose from, and the Lookup type indicates that this column will link to another list that holds another set of data. In this case, we will use this column to relate the incidents to the clients.

  1. To add the Customer Name column, select the Lookup type and from the Get information from dropdown, choose the Clients list we created before. Leave the rest of the options as the default.
  2. For the Priority column, select the Choice type and replace the choices with High, Medium, and Low. Set the Default value as Low
  3. Lastly, change the text type to Plain text for the Comments column.

Now that we have our lists in place, let’s see how this list and its relationships come together.

How it works…

After setting up our data source, we can now start entering some test data to use in our app.

  1. Click on the gear icon in the top-right corner, select Site contents, and select the Clients list:
Graphical user interface, text, application  Description automatically generated

Figure 1.2: Site contents option

  1. Now, let’s click on + New to add some random test data:
    • Name: Yennu Enterprises
    • Address: One Yennu road
    • Phone: +1 555 800 5555
    • Email: sales@yennu.com
  2. Add as much data as you like. Repeat the same steps with the Incidents list by clicking on the gear icon and selecting the list from Site contents.
  3. For Customer Name, you will see data loaded from the Clients list, and the Priority column will let you choose from the previously defined elements:
    • Incident: Failure in the programming of the executive elevator
    • Customer Name: Yennu Enterprises (link)
    • Date: 11/17/2020
    • Priority: High
    • Comments: The elevator returns itself to the last floor when idle.
  4. Again, add as much data as you want. And now, we are moving forward to the next section, where we will build an app from this data structure.
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Enhanced with added content on Power Pages, robotic process automation, map capabilities for canvas apps, solutions using mixed reality, and much more
  • Explore a variety of built-in templates to create custom apps for specific business scenarios
  • Strengthen your enterprise applications with advanced techniques and proven tips using a low-code approach

Description

Power Apps is a low-code platform owned by Microsoft. With this platform, you can create solutions to solve your business needs while integrating with other components of the Power Platform, such as Microsoft Power Automate, Microsoft Power BI, and others. This book is a handy solution guide to meet many organizational requirements. Microsoft Power Apps Cookbook, Second Edition, takes a pragmatic approach where every business scenario is presented in a quick, practical, and action-oriented recipe. You will be able to use these instant solutions in your development environment and customize your business apps to meet challenging business needs. This will help you handle real-world scenarios and experiences to give you a head start in your Power Apps projects. You will discover various aspects of Power Apps, from building canvas apps, designing model-driven solutions, extending apps with custom connectors, and integrating apps with other platforms, to the pro-developer side including Power Apps Component Framework and creating website experiences for external users with Power Pages. By the end of this Microsoft Power Apps book, you will have gained experience in developing applications using the Power Apps platform and all its features.

Who is this book for?

This book is targeted at information workers and citizen developers 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

  • Learn to integrate and test canvas apps
  • Design model-driven solutions using various features of Microsoft Dataverse
  • Automate business processes such as triggered events, status change notifications, and approval systems with Power Automate
  • Implement RPA technologies with Power Automate
  • Extend your platform using maps and mixed reality
  • Implement AI Builder s intelligent capabilities in your solutions
  • Extend your business applications capabilities using Power Apps Component Framework
  • Create website experiences for users beyond the organization with Microsoft Power Pages

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Aug 30, 2022
Length: 414 pages
Edition : 2nd
Language : English
ISBN-13 : 9781803243283
Vendor :
Microsoft
Category :
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
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Aug 30, 2022
Length: 414 pages
Edition : 2nd
Language : English
ISBN-13 : 9781803243283
Vendor :
Microsoft
Category :
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

Frequently bought together


Stars icon
Total 123.97
Microsoft Power Apps Cookbook, 2e
€37.99
Workflow Automation with Microsoft Power Automate, Second edition
€37.99
Microsoft Power Platform Solution Architect's Handbook
€47.99
Total 123.97 Stars icon

Table of Contents

14 Chapters
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 No Code Artificial Intelligence Chevron down icon Chevron up icon
Discovering the Power Platform Admin Center Chevron down icon Chevron up icon
Tips, Tricks, and Troubleshooting Chevron down icon Chevron up icon
Advanced Techniques with 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

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7
(18 Ratings)
5 star 88.9%
4 star 0%
3 star 5.6%
2 star 5.6%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Raymond Tham Jul 02, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excellent book
Feefo Verified review Feefo
Murray Fife Oct 25, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I got a copy of Eickhel Mendoza's second edition of his Microsoft Power Apps Cookbook book a couple of weeks ago, and this book is great. It covers all of the key components within the Power Platform, and gives great overviews of the Canvas and Model Driven Apps, Power Automate (including modularization techniques), Power Pages, and more.For any of you that just want to tinker around with the Power Platform, then this is a great start. Check it out on Amazon here:
Amazon Verified review Amazon
A. Jaokar Apr 23, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I like this book - both because of its content - but also because it clarified my understanding of the power platform - very relevant especially in the post GPT world.I read a lot of books - but few cause me to change my technical strategy in a big way. This book did.My hypothesis was that the worlds of LLMs and low code would come together. Hence, my interest in understanding #lowcodeThe book itself was interesting because while I explored it for low code (which included the AI builder product) - I realised that the Power apps / Power platform is now a full fledged development platform. In other words, I saw it as a Business intelligence platform (based on its origins) - much like Cognos or Business Objects. But the power platform has evolved far beyond the BI roots and I think with LLMs it will play a key role going forward. That's what I mean by it clarified my strategyThe cookbook format is easy to follow but also very comprehensive
Amazon Verified review Amazon
Jamie Willis-Rose Jan 30, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Eickhel Mendoza's Microsoft Power Apps Cookbook (2nd Edition) has amazing tips for everyone. From best practices for canvas apps to the more advanced topics like security and Power Apps Component Framework.You could read it cover to cover and learn a lot, but it's also well organized, so you can quickly jump the section the can help solve your problem. Definitely check out Chapter 10 "Tips, Tricks and Troubleshooting."Overall, highly recommend for anyone creating Power Apps today.
Amazon Verified review Amazon
Michel Mendes Dec 09, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Awesome way to get started with the Power Platform or extend your knowledge by getting to know how to get started with more features and integrations.This book not only guides you through some good practices and principles for Canvas apps development but also gives very practical examples demoing the usage of Canvas apps with different data sources such as SharePoint, Dataverse, SQL Server and Azure Key Vault. Not only explaining how to use different data sources but also how to integrate Canvas Apps with SharePoint and Teams and practical details about those integrations.This book is not restricted to Power Apps Canvas but also will bring tutorials and samples on several parts of the Power Platform.For example, related to Power Automate cloud flows there are also practical samples explaining how the main concepts work and how to automate processes and integrate different tools.The book also brings nice tutorials on Model Driven apps, Desktop flows, Power Pages, how to get started with PCF components and Power Platform administration.Highly recommended for anyone looking into expand their knowledge of the Power Platform!
Amazon Verified review Amazon
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.