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
Conferences
Free Learning
Arrow right icon
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

Arrow left icon
Profile Icon Eickhel Mendoza
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7 (18 Ratings)
Paperback Aug 2022 414 pages 2nd Edition
eBook
$9.99 $35.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Eickhel Mendoza
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7 (18 Ratings)
Paperback Aug 2022 414 pages 2nd Edition
eBook
$9.99 $35.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$9.99 $35.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Microsoft Power Apps Cookbook, 2e

Building from Data with Model-Driven Apps

Model-driven apps are the data-centric siblings of canvas apps. They get their foundation from the business data model, taking an approach of placing building blocks on top of data. These blocks build up in a standard responsive layout, which allows the creation of a solution that adapts to any device.

Even though analyzing and setting up the data source is one of the main objectives of any application, this is the primary objective in model-driven apps. A complete understanding of the business process allows you to design your data model with a solid structure to support the proposed solution. The last step would be to build the app on top of this model.

This chapter will explore the model-driven world of Power Apps while building a help desk solution. Through these recipes, you will get a clear view of all the components available on this platform:

  • Exploring Dataverse
  • Configuring the environment
  • Building a...

Technical requirements

The proposed help desk solution requires the following recipes to be addressed in sequence to build a complete model-driven solution.

The complete version of this application is available from our GitHub repository at https://github.com/PacktPublishing/Microsoft-Power-Apps-Cookbook-Second-Edition/tree/main/Chapter02

Licensing requirements

When building model-driven solutions, there are some specific licensing requirements. Please refer to the Preface section of this book to get more information about the licensing model of this platform.

Exploring Dataverse

When we talk about the data model for model-driven apps, we mean Dataverse. The data gets stored in tables just like regular databases. The difference between a traditional database and Dataverse lies in the rich set of business-oriented features:

  • Use a set of standard business tables out of the box with the ability to add your own custom tables
  • Create a table, and the platform will automatically add all columns to address the underlying process requirements, such as owner info, tracking, status, versioning, and the like
  • Structure your data with various column data types, which helps in complex data modeling scenarios
  • Design relationships and define keys for standard and custom tables to ensure data integrity across the service
  • Enforce security on roles, records, and column levels, giving you complete flexibility when setting up data access
  • Add business features right from the table configuration: data consumption through...

Configuring the environment

When you configure a Dataverse database for the first time, it will create a set of business-centric tables, such as Accounts and Contacts. Starting from them, you would only need to add custom tables that your processes might need to achieve their goal. In this recipe, we will start creating the building blocks of an application to handle a help desk service.

Getting ready

To build our solution, we will start by setting up a new environment and use it as our development area. Then, we can pack our solution and deploy it wherever it is needed.

How to do it…

  1. Go to the Power Apps admin center by visiting https://admin.powerplatform.microsoft.com, or https://aka.ms/ppac for short. You can also navigate from the Power Apps maker portal by clicking on the upper-right gear icon and selecting Admin center.
  2. Once in the admin center, select Environments in the left pane and click on New. This action will open a panel where you...

Building a Power Platform solution

If environments serve as containers for all our Power Platform components, then a solution is the container for each development we build using those components. A solution creates a package to store all the pieces that compose your application, which aids in deployment, distribution, and management. More information on this subject can be found here: https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/distribute-model-driven-app

Getting ready

To build our solution, we will start by setting up the publisher, which defines the solution’s developer and also specifies the prefix for all your custom tables and columns.

How to do it…

  1. From the Power Apps maker portal, select Solutions from the left menu, and then click on New Solution.
  2. Before describing the solution, click on New publisher and enter the Display name and Name. Enter a meaningful two-to-eight letters Prefix for all the elements you...

Defining data structures

For our help desk solution, we will use related tables as our data source. We will design a base column template to keep track of all the information needed. You can customize it to your own needs.

Getting ready

The following tables will make up our solution’s data structure with the main focus on the Ticket table, to which all the tables will be related. Let’s start with this one and then move on to the rest.

Ticket

This table will hold the base information of the help desk ticket and will be our data model’s primary object. The column structure is as follows:

Display name

Data type

Format

Title

Single line of text

Text

Description

...

Building the model-driven app

Creating a low-code application entails a different methodology for the application-building process. When using other technologies, you might need to choose the language, infrastructure, database system, and more. For model-driven applications, the essential principle is to create everything from the data structure and then build the components from there.

Getting ready

As per our example, the help desk solution will package all elements required for our application, such as tables, dashboards, and the like. All components can be exported in just one package and then imported into the destination environment.

We will use the Modern app designer to build the application. This designer allows more rapid application development, although it doesn’t have the complete list of features that the classic designer has. However, there is always a Switch to classic button to fall back to the classic designer when needed.

How to do it…...

Setting up business process logic

For every business process, there is always a step-by-step procedure that defines every requirement, objective, and resolution from start to end. Companies build on and improve these procedures depending on the business needs and even create departments to work exclusively on this.

Getting ready

Model-driven apps help set up these rules by providing several tools to define business logic at various platform levels. You can incorporate data validation rules, structured data flows to guide the end-user, and even trigger workflows for specific events in your processes. These are just some examples of what you can achieve with this platform.

Let’s improve our help desk application by adding business logic in two ways:

  • Hiding or making a column visible depending on the ticket status, by using a business rule. In our case, there is no reason for the Ticket Validation column to be visible unless the case is in a Resolved state...

Designing dashboards to visualize data

When working with business processes that deal with data, one of the main goals for organizations is to gain insights. Knowing where your operations are failing or where there is a market opportunity is vital, so having an easy way to interact with data is very important.

Dashboards are a feature in Dataverse that allow you to display a mix of graphs, grids of data, and web resources in one place. For example, web resources can include iframe objects, which can be used to display content from another website inside a model-driven application.

Building on the example used throughout this chapter, let’s add more value to the help desk solution by including a ticket dashboard.

How to do it…

  1. Let’s create the charts that we will use in our dashboard. Starting from our solution, expand the Ticket table and click on Charts. From the toolbar, click on New chart. This action will open a new tab to define the...

Integrating canvas apps inside model-driven apps

One of the best features present in canvas apps is the ability to access multiple external connectors from the same app. We can use this strength by embedding a canvas app as a component.

These are some scenarios in which this can be very helpful:

  • A canvas application that is already in use by the organization and we want to integrate into our model-driven solution.
  • A canvas app that connects to a legacy system using the on-premises data gateway.
  • An employee tracking system that gives us information about which of our customer locations our support staff is working at any given moment. This data could be helpful to see whether we already have someone from support at the customer’s location when a new ticket arrives.

Now let’s see how we can integrate a canvas into our model-driven solution.

How to do it…

  1. From the solution, expand the Project table and click on Forms...

Improving model-driven apps with custom pages

Model-driven apps offer many capabilities focused on data-driven solutions. These solutions use the features available from Dataverse, but what if you need to go beyond what model-driven apps provide?

The Power Apps roadmap hints about a convergence model in which model-driven apps and canvas apps use the same designer to build solutions. This feature offers the ability to unite the excellent capabilities available in canvas apps within model-driven applications. More information on this subject is available here: https://powerapps.microsoft.com/en-us/blog/custom-pages-for-converging-model-driven-apps-and-canvas-apps/

With this recipe, we will use canvas apps to make use of a device’s native capabilities – in this case, the Global Positioning System (GPS).

Getting ready

Building on this chapter’s solution, we will improve the data handling of the Ticket Operations table. Before we begin, go to the table...

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 : 9781803238029
Vendor :
Microsoft
Category :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Aug 30, 2022
Length: 414 pages
Edition : 2nd
Language : English
ISBN-13 : 9781803238029
Vendor :
Microsoft
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.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
$199.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
$279.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 $ 162.97
Microsoft Power Platform Solution Architect's Handbook
$62.99
Workflow Automation with Microsoft Power Automate, Second edition
$49.99
Microsoft Power Apps Cookbook, 2e
$49.99
Total $ 162.97 Stars icon
Banner background image

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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.