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

Commit cac6685

Browse files
authored
Merge pull request #36 from AhmedSalih-PowerPlatformPlace/main
build model-driven apps and business process flows
2 parents 68a999f + bca2935 commit cac6685

12 files changed

+187
-4
lines changed

2-Power Apps Development/README.md

Lines changed: 187 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,13 +1279,196 @@ Each stage contains a group of steps. Each step represents a column where data c
12791279

12801280
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.
12811281

1282-
#### Security roles
1282+
### Security roles
1283+
Security roles define how different users access different types of records. To control access to data and resources, you can create or modify security roles and change the security roles that are assigned to your users.
12831284

1284-
### Build
1285+
A user can have multiple security roles. Security role privileges are cumulative. Users are granted the privileges that are available in each role that's assigned to them.
12851286

1286-
#### Build your first Model Driven App
1287+
#### Create a security role
1288+
1- [Sign in](https://admin.powerplatform.microsoft.com/environments) to the Power Platform admin center and select an environment.
12871289

1288-
#### Business Processflows
1290+
2- Select Settings > Users + permissions > Security roles.
1291+
1292+
3- Select + New role.
1293+
1294+
4- Enter a role name.
1295+
1296+
5- Select a business unit.
1297+
1298+
6- To allow team members to inherit the privileges of this role when it's assigned to a team, accept the default Member's privilege inheritance setting, which is Direct User (Basic) access level and Team privileges.
1299+
1300+
7- To use the new role to run model-driven apps, accept the default Include App Opener privileges for running Model-Driven apps setting, which is set to On.
1301+
1302+
8- Use the new or legacy experience to specify privileges for the security role.
1303+
1304+
9- Select Save. The properties of the new role are displayed.
1305+
1306+
> Note: You must grant your app's table privileges to this newly created security role. You also need to review and update the default privileges that were copied from the App Opener security role's minimum privileges for common tasks. There are some privileges that were granted with an Organization-level read access, such as Process (Flows), that allow the user to run system-supplied flows. If your app or user doesn't need to run system-supplied flows, you can change this privilege to User (basic) level.
1307+
1308+
1309+
10- Enter your table name in the Search input field to find your app's table.
1310+
1311+
11- Select your table and set the Permission settings. Then select the Save button.
1312+
1313+
> Note: You may need to repeat the last two steps of this procedure if there is more than one table in your app.
1314+
1315+
![Create Seacurity Role](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Create%20Security%20Role.gif?raw=true)
1316+
1317+
![Assign Security Role to a user](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Assign%20Security%20Role%20to%20User.gif?raw=true)
1318+
1319+
#### Create a security role by Copy Role
1320+
1- [Sign in](https://admin.powerplatform.microsoft.com/environments) to the Power Platform admin center and select an environment.
1321+
1322+
2- Select Settings > Users + permissions > Security roles.
1323+
1324+
3- Select the security role you want to copy.
1325+
1326+
4- Select Copy.
1327+
1328+
5- Enter a name for the new role.
1329+
1330+
6- Select OK.
1331+
1332+
7- Use the [new](https://learn.microsoft.com/en-us/power-platform/admin/security-roles-privileges#define-the-privileges-and-properties-of-a-security-role) or [legacy](https://learn.microsoft.com/en-us/power-platform/admin/security-roles-privileges#security-roles-and-the-legacy-ui) experience to specify privileges for the security role.
1333+
1334+
8- Select Save + close.
1335+
1336+
#### Edit a security role
1337+
1338+
Before you edit a security role, make sure you understand the principles of controlling data access.
1339+
1340+
> Note: You can't edit the System Administrator security role. Instead, copy the System Administrator security role and make changes to the new role.
1341+
1342+
1343+
1- [Sign in](https://admin.powerplatform.microsoft.com/environments) to the Power Platform admin center and select an environment.
1344+
1345+
2- Select Settings > Users + permissions > Security roles.
1346+
1347+
3- Select the security role you want to edit.
1348+
1349+
4- Use the new or legacy experience to specify privileges for the security role.
1350+
1351+
5- Select Save + close.
1352+
1353+
1354+
### Build your first Model Driven App
1355+
#### Model-driven apps overview
1356+
Model-driven app design is an approach that focuses on adding components such as forms, views, and charts and dashboards to tables using an app designer tool. Additionally, [relationships](https://learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/model-driven-app-glossary#relationship) connect tables together in a way that permits navigation between them and ensures that data is not repeated unnecessarily.
1357+
1358+
Using the app designer with little or no code, you can build apps that are simple or very complex.
1359+
1360+
#### Process driven apps
1361+
Model-driven apps are especially well suited to process driven apps that are data dense and make it easy for users to move between related records. For example, if you are building an app to manage a complex process, such as onboarding new employees, managing a sales process, or member relationships in an organization such as a bank, a model-driven app is a great choice.
1362+
1363+
#### Data modeling
1364+
While they're called model-driven apps, it is often easier to think of them as data model driven apps. This is because, without a data model housed within Microsoft Dataverse, you can't create a model-driven app.
1365+
1366+
#### User experience
1367+
From the user's perspective, all model-driven apps offer a similar experience, which is both accessible to many users and to the device used. The experience is similar to the diagram shown below.
1368+
1369+
In this example, the app contains three tables (challenges, ideas, team projects), one dashboard, and multiple charts and views. Users can navigate between the tables using the left pane or via the dashboard.
1370+
1371+
![MDA](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/model-app-sample.png?raw=true)
1372+
1373+
#### Build a Model-Driven App
1374+
This interactive experience guides new makers through the creation of a model-driven app. Using the modern app designer, anyone can quickly create an app in three simple steps.
1375+
1376+
1- Name your app.
1377+
1378+
2- Create a page and add the preselected table to the page.
1379+
1380+
3- Publish and play your app.
1381+
1382+
![Create Model Driven App](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Create%20MDA.gif?raw=true)
1383+
1384+
1385+
### Business Process Flows
1386+
#### Why business process flows are used
1387+
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.
1388+
1389+
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.
1390+
1391+
#### What business process flows can do
1392+
With business process flows, you define a set of stages and steps that are then displayed in a control at the top of the form.
1393+
1394+
![Business Process Flow](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/business-process-stages.png?raw=true)
1395+
1396+
#### Create a business process flow
1397+
1- In Power Apps or Power Automate, select Solutions from the navigation bar on the left.
1398+
1399+
2- Select or create a solution to use for the business process flow.
1400+
1401+
3- Within the solution, select New > Automation > Process > Business process flow. a. Give your flow a Display name and Name (LogicalName). c. Select the table from which the flow will be used. d. Select Create.
1402+
![Business Process Flow Element](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/business-process-flow-window-showing-main-elements.png?raw=true)
1403+
> The new business process flow is created. You can now edit it with a first single stage created for you.
1404+
Business process flow window showing main elements.
1405+
1406+
4- Add stages. If your users will progress from one business stage to another in the process:
1407+
1408+
> A) Drag a Stage component from the Components tab and drop it on a + sign in the designer.
1409+
1410+
![Drag a Business Process Stage](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/drag-business-process-stage.png?raw=true)
1411+
1412+
> B) To set the properties for a stage, select the stage, and then set the properties in the Properties tab on the right side of the screen:
1413+
1414+
* Enter a display name.
1415+
1416+
* If desired, select a category for the stage. The category (such as Qualify or Develop), appears as a chevron in the process bar.
1417+
![Business Process Bar Chevron](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/business-process-bar-chevron.png?raw=true)
1418+
1419+
* When you're done changing properties, select the Apply button.
1420+
1421+
5- Add steps to a stage. To see the steps in a stage, select Details in the lower-right corner of the stage. To add more steps:
1422+
1423+
> A) Drag the Step component to the stage from the Components tab.
1424+
1425+
![Add Step Stage to Business Process](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/add-step-stage-business-process.png?raw=true)
1426+
1427+
1428+
> B Select the step, and then set properties in the Properties tab:
1429+
1430+
* Enter a display name for the step.
1431+
* If you want users to enter data to complete a step, select the appropriate column from the drop-down list.
1432+
* Select Required if people must fill in the column to complete the step before moving to the next stage of the process.
1433+
* Select Apply when you're done.
1434+
> Note: if you set a two-option boolean column as Required, users can't continue unless the column value is Yes. The user is required to mark the column as completed before moving to the next stage.
1435+
If either Yes or No are acceptable column values, then you should make the column a choice instead of a two-option boolean column.
1436+
1437+
1438+
6- Add a branch (condition) to the process. To add a branching condition:
1439+
1440+
> A Drag the Condition component from the Components tab to a + sign between two stages.
1441+
1442+
![Add Condition to Business Process Flow](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/add-condition-business-process-flow.png?raw=true)
1443+
1444+
1445+
> B Select the condition, and then set properties in the Properties tab. For more information on branching properties, go to Enhance business process flows with branching. When you're finished setting properties for the condition, select Apply.
1446+
1447+
7- Add a workflow. To invoke a workflow:
1448+
1449+
> A) Drag a Workflow component from the Components tab to a stage or to the Global Workflow item in the designer. Which one you add it to depends on the following:
1450+
1451+
* Drag it to a stage when you want to trigger the workflow on entry or exit of the stage. The workflow component must be based on the same primary table as the stage.
1452+
* Drag it to the Global Workflow item when you want to trigger the workflow when the process is activated or when the process is archived (when the status changes to Completed or Abandoned). The workflow component must be based on the same primary table as the process.
1453+
> B) Select the workflow, and then set properties in the Properties tab:
1454+
1455+
* Enter a display name.
1456+
* Select when the workflow should be triggered.
1457+
* Search for an existing on-demand active workflow that matches the stage table or create a new workflow by selecting New.
1458+
* Select Apply when you're done.
1459+
1460+
1461+
8- To validate the business process flow, select Validate on the action bar.
1462+
1463+
9- To save the process as a draft while you continue to work on it, select Save in the action bar.
1464+
1465+
10- To activate the process and make it available to your team, select Activate on the action bar.
1466+
1467+
#### How to create Business Process Flow:
1468+
![How to create BPF](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/Orders%20BPF.gif?raw=true)
1469+
1470+
#### See Business Process Flow in action:
1471+
![BPF in Action](https://github.com/AhmedSalih-PowerPlatformPlace/Power-Platform-For-Beginners/blob/main/2-Power%20Apps%20Development/assets/BPF%20in%20Action.gif?raw=true)
12891472

12901473
## Licensing
12911474

2.35 MB
Loading
1.66 MB
Loading
5.08 MB
Loading
8.35 MB
Loading
5.22 MB
Loading
7.02 KB
Loading
10.8 KB
Loading
5.19 KB
Loading
24.6 KB
Loading

0 commit comments

Comments
 (0)