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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft Power Apps Cookbook

You're reading from   Microsoft Power Apps Cookbook Build user-friendly apps, troubleshoot challenges, and navigate the evolving Power Apps landscape

Arrow left icon
Product type Paperback
Published in Oct 2024
Publisher Packt
ISBN-13 9781835465158
Length 438 pages
Edition 3rd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Eickhel Mendoza Eickhel Mendoza
Author Profile Icon Eickhel Mendoza
Eickhel Mendoza
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. App Maker Basics 2. Building Pixel-Perfect Solutions with Canvas Apps FREE CHAPTER 3. Building from Data with Model-Driven Apps 4. Choosing the Right Data Source for Your Applications 5. Automating Processes with Power Automate 6. Extending the Platform 7. Improving User Experience 8. Power Apps Everywhere 9. Empowering your Applications with AI Builder 10. Discovering the Power Platform Admin Center 11. Tips, Tricks, and Workarounds 12. Advanced Techniques with the Power Apps Component Framework 13. Reaching Beyond the Organization with Power Pages 14. Other Books You May Enjoy
15. Index

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

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image