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: Become a pro Power Apps maker by applying practical use cases to solve ever-evolving business challenges

eBook
$9.99 $35.99
Paperback
$44.99
Subscription
Free Trial
Renews at $19.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

Chapter 2: 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 solution, this is the primary objective in these types of apps. Having a complete understanding of the business process gives you the ability to design your data model with a strong structure in mind 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 in this platform:

  • Exploring Dataverse
  • Building a help desk solution
  • Defining data structures
  • Building the model-driven app
  • Setting up business process logic
  • Designing dashboards to visualize data
  • Integrating canvas apps inside model-driven apps

Technical requirements

Working with apps that are born from data requires a particular structure detailed in this chapter; this means that the following recipes need 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/tree/master/Chapter02

Licensing requirements

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

Exploring Dataverse

For model-driven apps, when we talk about the data model, we mean Dataverse. The data gets stored in tables just like regular databases. The difference lies in the rich set of business-oriented features:

  • Leverage a set of standard business tables out of the box with the ability to add your own custom tables.
  • Create a table, and it 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 to 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 views, data manipulation through forms, data visualization through dashboards and charts, and last but not least, business rules to apply a set of validations and logic without writing code.

Here's an example of what tables look like:

Figure 2.1 – Table example in Dataverse

Figure 2.1 – Table example in Dataverse

To store these tables, Dataverse uses environments that act as a container not only for data but also for all the components that interact with it, such as applications, flows, and business processes.

Besides these features, Dataverse also manages solutions to package apps and components from one environment to another. This feature allows the implementation of application life cycle management (ALM) for the whole Power Platform. For more information, please refer to https://docs.microsoft.com/en-us/power-platform/alm/basics-alm

Dataverse is also the service Dynamics 365 applications use to store data; this means that you can interact with the data that your business is already using.

Building a help desk solution

When you configure Dataverse for the first time, it will help create business-centric applications with a set of base tables, such as Account, Contact, and Organization. Starting from those, you would only need to add custom tables that your processes might need to achieve their goal. With this recipe, we will create an application that will help 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 opening this URL: https://admin.powerplatform.microsoft.com, or https://aka.ms/ppac for short. You can also navigate from Power Apps by clicking on the upper-right gear icon and selecting Admin center.
  2. Once in the admin center, select Environments on the left menu and then click on New. This action will open a panel where you will need to describe your new environment. Choose a name and a region close to you, and describe the purpose. For the Type, you can select Production, Sandbox, or Trial. Production is where your solutions operate for end users, Sandbox is for testing solutions, and Trial is a 30-day environment meant to test new features. It will also ask you whether you want to have a database created for this environment; as we will need one for our solution, please select Yes and then click on Next:
    Figure 2.2 – Environment settings

    Figure 2.2 – Environment settings

  3. In the next panel, you will need to set the default language for the interface, the URL prefix to access your new environment, for example, ampihelpdesk, and the required currency for reporting purposes. Select whether you want to enable Dynamics 365 apps (given that you have the required licenses and only for the default region) and whether you're going to add sample apps and data. Finally, pre-define the security to access your environment by selecting a security group, and then click on Save:
    Figure 2.3 – Database settings

    Figure 2.3 – Database settings

  4. The admin center will start the provisioning of your environment. After a couple of minutes, it will appear as Ready, and then you can go to Power Apps to begin working with it.

How it works…

From Power Apps, select your newly created environment from the list by clicking on the current one on the top right of the interface:

Figure 2.4 – Environment list

Figure 2.4 – Environment list

After making this selection, we will only see information related to this environment, such as apps, flows, and connections.

We will define the custom tables needed for our help desk solution in the Defining data structures recipe.

Defining data structures

To support our help desk solution, we are going to 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.

Explanation and overview

The following tables will make up our solution's data structure with the main focus on the Ticket table; this will be the one from which all other tables will have their relationship. 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 it's going to be the primary object of our data model. The column structure is as follows:

  • Title [Text]
  • Description [Text Area]
  • Ticket Status [Choice]
  • Priority [Choice]
  • Customer validation [Choice]
  • Resolution [Text Area]

Ticket operation

Related to the Ticket table, this will hold the specific operations executed to solve the ticket. The structure is as follows:

  • Title [Text]
  • Description [Text Area]
  • Operation Status [Choice]
  • Duration [Duration]

Project

All tickets are going to be associated with a customer's project. The structure is as follows:

  • Title [Text]
  • Description [Text Area]
  • Start [Date Only]
  • End [Date Only]

Account

We will take advantage of one of the default business tables that comes with Dataverse when a new database gets created. This table holds our customers' information.

How to do it…

  1. In the Tables section, select New Table from the top toolbar. On the panel that opens, fill in the required information to create the structure.

    For the table section, set Display name and the plural form, such as Ticket and Tickets. For the Name field, you can put the same as the display name; the system will automatically generate a prefix to help make your name unique.

  2. Primary Name Column is the main identifier in this table. For the Ticket table, input Title. Choose something that your users can also use to select the rows when the system is listing them.
  3. Depending on the needs of your table, you might want to Enable attachments. For example, it might be useful in the Ticket table to include extra information about the incident that started the ticket, such as screenshots or PDF files.
  4. Once we have entered all the required information, you can click on Done. The system will then start creating the table with the specified primary name column and the rest of the business-oriented columns.

    The following is an example of the Ticket table:

    Figure 2.5 – Ticket table base structure

    Figure 2.5 – Ticket table base structure

  5. Now we can start shaping the table by adding the rest of the required columns. Click on Add column, and in the Display name field, input Description, and for the Name field, change it back to lowercase as description. Set Data type to Text Area and click on Done.
  6. Repeat step 5 to add the Resolution column.
  7. Click on Add column again to include the Ticket Status column. For Data type, select Choice. Selecting this will display a new dropdown to choose from the existing choice columns. Choose + New choice from this dropdown, and in the Items section, remove the existing one and add these: New, Pending, Resolved, and Closed. Finally, click on Save and then Done.
  8. Repeat step 7 for the Ticket Priority column, adding the following items: Low, Medium, and High.
  9. Again, repeat step 7 for the Ticket Validation column, adding Phone and Email for the items.

    Here's an example of the Ticket Status column settings:

    Figure 2.6 – Status column sample

    Figure 2.6 – Status column sample

  10. When you complete the creation of the columns, click on Save Table.
  11. Click on Tables on the left pane and then on New Table to add the Ticket operation table. For Primary Name Column, use Title. Remember to change the Name fields to lowercase, and then click Done.
  12. When the table completes the provisioning, click on Add column to add the Description column using Text Area as its Data type value, and then click Done.
  13. Click on Add column again to add the Operation Status column. For Data type, select Choice, and from the dropdown, choose the one we created in step 7, Ticket Status, and then click Done.
  14. Again, click on Add column to create the last column on this table, Duration. For Data type, select Duration and click Done, and then click on Save Table.
  15. Go back to the tables list by click on Tables on the left pane, and then click on New Table to add the Project table. Use Title for Primary Name Column and set the Name fields to lowercase. Click Done.
  16. Once the provisioning completes, click on Add column to add the Description column using Text Area as its Data type value, and then click Done.
  17. Click on Add column to create the Start column. Set Data type to Date Only and then click Done. Repeat this step to make the End column.
  18. Click Save Table to complete the configuration of the Project table.
  19. Let's configure the relationship between tables to maintain data integrity in our solution. From the Tables list, select to open the Ticket table, and then click on the Relationships tab. In the toolbar, click on Add relationship and then choose One-to-many. This kind of relationship roughly means that one element from one side (Ticket) can have many child items on the other (Ticket Operations).
  20. When the panel opens, select Ticket Operation from the Related (Many) list. This action will create a lookup column to connect both tables. You can configure more settings in the advanced section regarding which action gets taken when a record gets deleted. To keep data integrity, you might want to avoid a ticket deletion without removing the ticket operations first. In this case, we are going to restrict deletions. When finished, click on Done and then Save Table. For more information on relationships, please refer to https://docs.microsoft.com/en-us/powerapps/maker/common-data-service/data-platform-entity-lookup#add-advanced-relationship-behavior
  21. Repeat steps 8 and 9 to configure the One-to-many relationship between Project (one) and Ticket (many), and finally between Account (one) and Project (many):
Figure 2.7 – Relationship example

Figure 2.7 – Relationship example

How it works…

We now have the data structure and relationships in place. To start entering data in our tables, we need to complete the required modifications in the next recipe's data forms, Building the model-driven app. However, the Account table comes by default in the system, so everything is already configured to enter data.

From the Tables list, select to open the Account table, and then select the Data tab. In the toolbar, click on Add record. This action will open up a new browser tab with a form to load data. Fill in all the desired columns and then click Save & Close from the toolbar if you want to add only one account, or click Save and then New to add more records.

Left arrow icon Right arrow icon
Download code icon Download Code

Description

Microsoft Power Apps Cookbook is a complete resource filled with meticulously crafted recipes to help you build customized business apps that meet ever-changing enterprise demands. You will learn how to design modern apps with the low-code approach in a rapid application development environment by achieving enterprise-wide business agility.

Who is this book for?

This book is for citizen developers and business users looking to build custom applications as per their organizational needs without depending on professional developers. Traditional app developers will also find this book useful by discovering how to build applications in a rapid application development environment with increased productivity and speed. The book is recommended for Power Apps beginners who have taken a couple of online tutorials but are struggling to implement or create real-world solutions. Basic knowledge of Power Apps is necessary to get the best out of this cookbook.

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 : Jan 22, 2021
Length: 376 pages
Edition : 1st
Language : English
ISBN-13 : 9781800568723
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 : Jan 22, 2021
Length: 376 pages
Edition : 1st
Language : English
ISBN-13 : 9781800568723
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 $ 178.97
Microsoft Power Platform Enterprise Architecture
$78.99
Workflow Automation with Microsoft Power Automate
$54.99
Microsoft Power Apps Cookbook
$44.99
Total $ 178.97 Stars icon
Banner background image

Table of Contents

12 Chapters
Chapter 1: Building pixel-perfect solutions with Canvas Power Apps Chevron down icon Chevron up icon
Chapter 2: Building from data with model-driven apps Chevron down icon Chevron up icon
Chapter 3: Choosing the right data source for your applications Chevron down icon Chevron up icon
Chapter 4: Automating processes with Power Automate Chevron down icon Chevron up icon
Chapter 5: Extending the Platform Chevron down icon Chevron up icon
Chapter 6: Improving User Experience Chevron down icon Chevron up icon
Chapter 7: Power Apps Everywhere Chevron down icon Chevron up icon
Chapter 8: Empowering your applications with no code Artificial Intelligence Chevron down icon Chevron up icon
Chapter 9: Discovering the Power Platform admin center Chevron down icon Chevron up icon
Chapter 10: Tips, Tricks, and Troubleshooting Chevron down icon Chevron up icon
Chapter 11: Advanced Techniques with Power Apps Component Framework Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.9
(7 Ratings)
5 star 28.6%
4 star 42.9%
3 star 14.3%
2 star 14.3%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Alicia Tapia May 06, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I like cookbooks because sometimes they show tips and tricks. In this particular case, the author not only shows you how to do it but also best practices.In Chapter 5 they walk you through how to create a vertical navigation component in very few steps.The font awesome configuration is pretty cool. I didn't know that this feature could be so functional. Overall I am very happy with this book and I recommend it :)
Amazon Verified review Amazon
Mar Llambí Feb 05, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I think there are books, authentic bibles of technical knowledge, that every professional should have and this is undoubtedly one of them. This book starts from the premise that the reader has already faced Power Apps before and through the perfect structuring of chapters and continuous exposure of details, it leads her/him on a journey of improvement and professionalization. I can certainly affirm that we are in front of the GREAT book of Power Apps.What I LIKE:I believe that anyone who purchases this book will see that his/her expectations are perfectly fulfilled.- Correct insight of the topic, I did not miss any content and also Eickhel has been able to delve not only into the areas where he is recognized with high experience, but also those where there is a lack of information in the community.- The reader does not have an overexposure of theory and documentation, this book is the perfect balance between practical and real cases.What I DON'T LIKEI sincerely think that this book is complete enough, I wish this would be the first book of a saga.- If I had to point out something, it would be the fact that the PCF chapter is too short for me, and responding to the title of the book, I have seen quite a lot more explanation around the flows than the development of components with the framework.What I would like to SEE MORE:The platform is constantly changing and I wouldn't want this book to become obsolete given its importance. I seek the author and publisher for revised and updated versions of the book in the next future.
Amazon Verified review Amazon
Mark D. Slosberg May 07, 2021
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
This is the 4th book involving the Power Platform that I have reviewed from this publisher and it is unique in its approach. Rather than being a text book that might be used in a course, it offers, as the “cookbook” name implies, step-by-step walkthroughs of a wide range of relatively complicated but valuable use cases that you would find in the “lab” that goes along with the class. These build on fundamentals and provide lots of techniques that are highly reusable.First of all, I would not recommend this book as a beginners text, even though it really does start from the basics. After the first one or two examples, you are suddenly swimming in deep and advanced waters and to really exploit it properly you have have some experience using (and fighting with) the Power Platform as a whole. You should also have access to a wide variety of different data sources and services including the SharePoint/OneDrive, multiple Azure services (SQL, Key Vault, AD), the entire Power Platform (App, Automate, BI, Dataverse, OnPremise Data Gateway). It also helps to have admin rights, full network access and be familiar with GitHub (to get all of the support files).At first I struggled to get a handle on the book because just skimming it really doesn’t do it justice. I had to really sit down and step through the examples one by one and compare what it teaches with what I already know as a professional who has built production, end-to-end systems for real users. What I found when I did that was a very interesting intersection of things I already knew with a lot of new, nifty and useful techniques for things that I have thought about doing but haven’t gotten around to in my 4+ years using the Power Platform. Back then it was relatively immature and didn’t always work really well but now it is much more robust but still "weird" sometimes. The book, in many cases illuminates and explains what is going on for things which is the first time I have seen that. Many of these things I have been doing for months and months after discovering through lots of trial and error how to do them.Just like a regular cookbook, for me now, I am prioritizing which “recipes” I now want to cook and which ones will have to wait for later since there simply isn’t time in the day to cook everything in it.What it is missing is what I have found missing from each volume I have reviewed. This is all the “gotchas” and things that don’t exactly work as advertised that frustrate users who must spend hours and hours working through the platform “weirdness”. It could also benefit from a really good knowledge framework to hold all of the different "recipes", capabilities and knowledge required to master the Power Platform and build production quality tools for real users. My only other complaint is that I also find the visual format of the book a bit pedestrian and monotonous. This unfortunately “hides” some of the real value in the volume. The book would have benefited from a bit more presentation creativity.All in all, I would recommend this volume for moderate and above Power Platform users.
Amazon Verified review Amazon
Swati Srivastava May 07, 2021
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Microsoft Power Apps Cookbook is not only a great learning resource for someone who is just getting started with the Power Platform but also a great reference resource for the seasoned professionals who are well versed with the platform.What I like about this book is that it covers a wide range of topics around the low code capabilities of the Power Platform. Specifically for Power Apps, it does justice to both canvas and model-driven apps. The fact that it describes how to create specific examples that solve specific use cases makes it even better. It's not just a book full of concepts, it even takes up specific use cases and gives step-by-step instructions on how to create complete end-to-end solutions for those use cases.One thing I don't like is the fact that the book includes a couple of topics that get into the pro-code side of the platform like chapter 11 about Power Apps Component Framework (PCF). Depending on the skillset of a reader, it could end up being a chapter that they don't reference at all. And that's the only thing I would change - have this book focus just on the low-code portion of the Power Platform and have another book that focuses just on the pro-side of things.
Amazon Verified review Amazon
Mark Jul 12, 2021
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Not a bad book. Perhaps a bit complex for a beginner but, contains all the information you need.
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.