Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit 68a999f

Browse files
authored
Merge pull request #35 from AhmedSalih-PowerPlatformPlace/main
dataverse tables forms, views, and business rules
2 parents 0ba06ce + fe49886 commit 68a999f

12 files changed

+176
-4
lines changed

2-Power Apps Development/README.md

Lines changed: 176 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,15 +1099,187 @@ Dataverse provides a rich array of column types to cater to diverse data storage
10991099

11001100
Dataverse columns form the backbone of data storage and manipulation within Power Platform's ecosystem. Understanding the available column types and their purposes helps in designing efficient and meaningful data models. When creating columns, always consider the nature of data to be stored, the kind of operations that might be performed on it, and how it relates to other data in the system.
11011101

1102-
#### Forms
1102+
### Forms
1103+
With Power Apps model-driven apps, Dataverse tables forms provide the user interface that people use to interact with the data they need to do their work. It's important that the forms people use are designed to allow them to find or enter the information they need efficiently.
11031104

1104-
#### Views
1105+
![Form](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Forms_WhatIsForms_FormExample.png?raw=true)
1106+
#### Type of Forms
1107+
There are different types of forms, and each type has a specific functionality or use. These include:
11051108

1109+
* Main (the main user interface).
1110+
Used in model-driven apps, Dynamics 365 for tablets, and Dynamics 365 for Outlook.
1111+
These forms provide the main user interface for viewing and interacting with table data.
1112+
* Quick create (rapid data entry).Used in model-driven apps, Dynamics 365 for tablets, and Dynamics 365 for Outlook.For updated tables, these forms provide a basic form optimized for creating new records.
1113+
* Quick view (to see related data).
1114+
Used in model-driven apps, Dynamics 365 for tablets, and Dynamics 365 for Outlook. For updated tables, these forms appear within the main form to display additional data for a row that is referenced by a lookup column in the form. Users can view data from related tables without having to leave the form.
1115+
* Card form (a compact view).Used in views for model-driven apps. Card forms are designed to present information in a compact format that is suitable for mobile devices.
1116+
1117+
More information: [Types of forms in Power Apps.](https://learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/types-forms)
1118+
1119+
#### Access Dataverse tables' default forms (Forms that are created when the table is created)
1120+
Accessing Dataverse tables forms involves a few steps: you can access the forms by going to your tables in the [Power Apps Portal](https://make.powerapps.com) and selecting the Tables menu item on the left panel, then selecting the specific table and finally selecting forms from the table designer. Another way to access the forms is to go to the solution where you have created the table (If you created your table inside a custom solution) and from the object treeview, select tables, then select the table, and then select forms.
1121+
1122+
![View Forms](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Forms_ExploreDefaultTableForms_0.gif?raw=true)
1123+
1124+
![View Forms](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Forms_ExploreDefaultTableForms.gif?raw=true)
1125+
1126+
#### Create and/or Edit Forms
1127+
When a new form is created for a table, its form type is Main. When the new form opens, it is identical to the form named Information. Columns, sections, tabs, navigation, and properties associated with the form can be edited and the form can then be saved.
1128+
1129+
Each main form is composed of one or more tabs. Each tab can have one or more sections. Each section contains one or more columns, also called form fields. Forms can be cloned to provide a simpler starting point for form development. To clone a form, open the form you want to copy in the form editor, on the command bar select the down arrow next to Save, select Save As, enter the name for the new form, and then select Save.
1130+
1131+
1. Sign in to [Power Apps](https://make.powerapps.com/?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc).
1132+
1133+
2. Select Tables on the left navigation pane, select the table you want, and then select the Forms area. If the item isn’t in the left navigation pane, select …More and then select the item you want.
1134+
1135+
3. To create a new main form, on the toolbar select Add form > Main Form.
1136+
-OR- To edit an existing main form, select any form with the Type of Main.
1137+
1138+
What you can do when after creating new form or editing existing form:
1139+
1140+
#### Change the form design in any of the following ways, as needed:
1141+
1142+
* Add a column to or remove a column from a form
1143+
* Add a section to or remove a section from a form
1144+
* Add a tab to or remove a tab from a form
1145+
* Add or edit a subgrid on a form
1146+
* Edit form headers
1147+
1148+
#### Edit the properties for parts of the form, as needed:
1149+
* Edit form properties
1150+
* Edit form column properties
1151+
* Edit tab properties
1152+
* Edit section properties
1153+
1154+
![Create Forms](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Forms_CreateForms.gif?raw=true)
1155+
1156+
![Edit Forms](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Forms_EditForm.gif?raw=true)
1157+
1158+
[Read more about How to create or edit a main form](https://learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/create-edit-main-forms#how-to-create-or-edit-a-main-form)
1159+
1160+
1161+
### Views
1162+
Model-driven apps use views to define how a list of records for a specific table are displayed in the application.
1163+
1164+
A view defines:
1165+
1166+
* The columns to display.
1167+
* The order of the columns.
1168+
* How wide each column should be.
1169+
* How the list of records should be sorted by default.
1170+
* The default filters applied to restrict the records that will appear.
1171+
1172+
Once a view has been made available in the app, the user can select it.
1173+
1174+
![Views](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Views_switch-views.gif?raw=true)
1175+
1176+
#### Types of views
1177+
There are three types of views: personal, system, and public.
1178+
1179+
* Personal view - Personal views are owned by individuals and only visible to that person unless they share their personal views with others.
1180+
* System view - As a system administrator or system customizer, you can edit system views. System views are special views the application depends on, which exist for system tables or are automatically created when you create custom tables. These views have specific purposes and some additional capabilities.
1181+
* Public view - Public views are general purpose views that you can customize as you see fit. They are important because all app users can access them, when they are made available, by using the view selector. It is possible to use public views in subgrids in a form or as a list in a dashboard.
1182+
1183+
#### Create a View
1184+
1- Sign in to [Power Apps.](https://make.powerapps.com/?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc)
1185+
1186+
2- Select an [environment.](https://learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/model-driven-app-glossary#environment)
1187+
1188+
3- Select Tables, and then open the table you want. If the item isn’t in the left navigation pane, select …More and then select the item you want.
1189+
1190+
4- Select the Views area. If using a custom solution, open the solution, open the table, and then select the Views area.
1191+
1192+
5- On the toolbar, select Add view.
1193+
1194+
6- On the Create a view dialog, enter a name and, optionally, a description, and then select Create.
1195+
1196+
![Create a View](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Views_CreateView.gif?raw=true)
1197+
#### Edit a View
1198+
![Edit a View](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Views_EditView.gif?raw=true)
11061199
#### Business rules
1200+
You can create business rules and recommendations to apply logic and validations without writing code or creating plug-ins. Business rules provide a simple interface to implement and maintain fast-changing and commonly used rules.
1201+
1202+
> Important: Business rules defined for a table apply to both canvas apps and model-driven apps if the table is used in the app. Not all business rule actions are available on canvas apps at this time. More information: [Differences between canvas and model-driven apps](https://learn.microsoft.com/en-us/power-apps/maker/data-platform/data-platform-create-business-rule#differences-between-canvas-and-model-driven-apps)
1203+
1204+
1205+
Very often it is necessary to add in business logic to ensure that columns in a model-driven app are shown, hidden, or set with the correct values. By combining conditions and actions, the following actions are possible with business rules:
1206+
1207+
* Set column values
1208+
1209+
* Clear column values
1210+
1211+
* Set column requirement levels
1212+
1213+
* Show or hide columns
1214+
1215+
* Enable or disable columns
1216+
1217+
* Validate data and show error messages
1218+
1219+
* Create business recommendations based on business intelligence.
1220+
1221+
### Create a business rule
1222+
1- Sign in to [Power Apps](https://make.powerapps.com/?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc), on the left navigation pane, and select Tables. If the item isn’t in the left navigation pane, select […More](https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/intro-maker-portal#1--left-navigation-pane) and then select the item you want.
1223+
1224+
2- Open the table you want to create the business rule for (for example, open the Account table), and then select the Business Rules tab.
1225+
1226+
3- Select Add business rule.
1227+
1228+
The business rule designer window opens with a single condition already created for you. Every rule starts with a condition. The business rule takes one or more actions based on that condition.
1229+
1230+
4- Add a description, if you want, in the description box in the upper-left corner of the window.
1231+
1232+
5- Set the scope, according to the following:
1233+
1234+
6- Add conditions. To add more conditions to your business rule:
1235+
1236+
>a. Drag the Condition component from the Components tab to a plus sign in the designer.
1237+
1238+
1239+
>b. To set properties for the condition, select the Condition component in the designer window, and then set the properties in the Properties tab on the right side of the screen. As you set properties, the Microsoft Dataverse creates an expression at the bottom of the Properties tab.
1240+
1241+
>c. To add an additional clause (an AND or OR) to the condition, select New in the Properties tab to create a new rule, and then set the properties for that rule. In the Rule Logic column, you can specify whether to add the new rule as an AND or an OR.
1242+
1243+
>d. When you're done setting properties for the condition, select Apply.
1244+
1245+
7- Add actions. To add an action:
1246+
1247+
>a. Drag one of the action components from the Components tab to a plus sign next to Condition component. Drag the action to a plus sign next to a check mark if you want the business rule to take that action when the condition is met, or to a plus sign next to an x if you want the business rule to take that action if the condition isn't met.
1248+
1249+
>b. To set properties for the action, select the Action component in the designer window, and then set the properties in the Properties tab.
1250+
1251+
>c. When you're done setting properties, select Apply.
1252+
1253+
8- Add a business recommendation (model-driven apps only). To add a business recommendation:
1254+
1255+
>a. Drag the Recommendation component from the Components tab to a plus sign next to a Condition component. Drag the Recommendation component to a plus sign next to a check mark if you want the business rule to take that action when the condition is met, or to a plus sign next to an x if you want the business rule to take that action if the condition isn't met.
1256+
1257+
>b. To set properties for the recommendation, select the Recommendation component in the designer window, and then set the properties in the Properties tab.
1258+
1259+
>c. To add more actions to the recommendation, drag them from the Components tab, and then set properties for each action in the Properties tab.
1260+
1261+
>d. When you're done setting properties, select Apply.
1262+
1263+
9- To validate the business rule, select Validate on the action bar.
1264+
1265+
10- To save the business rule, select Save on the action bar.
1266+
1267+
11- To activate the business rule, select it in the Solution Explorer window, and then select Activate. You can't activate the business rule from the designer window.
1268+
1269+
![Create Business Rules](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Create_Business_Rules.gif?raw=true)
1270+
1271+
![Business Rule Applied](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Business_Rules_in_Actions.gif?raw=true)
1272+
### Business Process flows
1273+
Business process flows provide a guide for people to get work done. They provide a streamlined user experience that leads people through the processes their organization has defined for interactions that need to be advanced to a conclusion of some kind. This user experience can be tailored so that people with different security roles can have an experience that best suits the work they do.
1274+
1275+
Use business process flows to define a set of steps for people to follow to take them to a desired outcome. These steps provide a visual indicator that tells people where they are in the business process. Business process flows reduce the need for training because new users don’t have to focus on which table they should be using. They can let the process guide them. You can configure business process flows to support common sales methodologies that can help your sales groups achieve better results. For service groups, business process flows can help new staff get up-to-speed more quickly and avoid mistakes that could result in unsatisfied customers.
1276+
![BPF](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/business-process-stages.png?raw=true)
1277+
1278+
Each stage contains a group of steps. Each step represents a column where data can be entered. You can advance to the next stage by using the Next Stage button. In the unified interface, you can work with a business process flow stage inside the stage flyout or you can pin it to the side pane. Business process flows doesn't support expanding the stage flyout to the side pane on mobile devices.
11071279

1108-
#### Business Process flows
1280+
You can make a step required so that people must enter data for a corresponding column before they can proceed to the next stage. This is commonly called ”stage-gating”. If you are adding a business-required or system-required column to a business process flow stage, we recommend that you add this column to your form as well.
11091281

1110-
#### Recurity roles
1282+
#### Security roles
11111283

11121284
### Build
11131285

1.48 MB
Loading
3.65 MB
Loading
8.84 MB
Loading
2.58 MB
Loading
1.36 MB
Loading
1.85 MB
Loading
237 KB
Loading
3.8 MB
Loading
3.16 MB
Loading

0 commit comments

Comments
 (0)