You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. On the **Fields** tab on the entity designer toolbar select **Add field**. On the **Field properties** pane, enter or select the following values and options.
5. On the **Fields** tab on the entity designer toolbar select **Add field**. On the **Field properties** pane, enter or select the following values and options.
65
+
-**Display name**. *Species*
66
+
-**Data type**. *Option Set*
67
+
-**Option set**. *New option set*
64
68
65
-
b. Replace **New option** with *Dog*.
66
-
67
-
c. Select **Add new item**.
68
-
69
-
d. Replace **New option** with *Cat*.
70
-
71
-
e. Select **Save**.
69
+
6. Select **View more**, and then select **Local option set**.
6. Select **Searchable**, and then select **Done**.
77
85
78
86
7. On the entity designer toolbar select **Add field**. On the **Field properties** pane, enter or select the following values, and then select **Done**.
79
-
-**Display name**. *Breed*
80
-
-**Data type**. *Text*
81
-
-**Searchable**. *Yes*
87
+
-**Display name**. *Breed*
88
+
-**Data type**. *Text*
89
+
90
+
8. Select **Searchable**, and then select **Done**.
82
91
83
92
8. On the entity designer toolbar select **Add field**.
84
93
85
94
9. On the **Field properties** pane, enter or select the following values, and then select **Done**.
86
-
-**Display name**. *Appointment date*
87
-
-**Data type**. *Date and time*
95
+
-**Display name**. *Appointment date*
96
+
-**Data type**. *Date and time*
88
97
89
-
10. Select **Save Entity**.
98
+
10. Select **Done**.
90
99
91
100
## Add a relationship
92
101
93
-
1. Select the **Relationships** tab, on the entity designer toolbar select **Add relationship**, and then select **Many-to-one**.
102
+
1. Select the **Relationships** tab, on the entity designer toolbar select **Add relationship**, and then select **Many-to-one**.
103
+
94
104
2. On the right pane, in the **Related** list select **Account**.
105
+
95
106
3. Select **Done**.
107
+
96
108
4. Select **Save Entity**.
97
109
98
110
Notice that when you add a many-to-one relationship, an **Account** field with the data type **Lookup** is automatically added to your list of fields on the **Fields** tab.
@@ -101,32 +113,44 @@ Sign in to [Power Apps](https://make.powerapps.com/?utm_source=padocs&utm_medium
101
113
102
114
## Customize a view
103
115
104
-
1. Select the **Views** tab, and then select the **Active Pets** view. If you don't see the **Active Pets** view, select **Remove filter**.
116
+
1. Select the **Views** tab, and then select the **Active Pets** view. If you don't see the **Active Pets** view, change the filter on the command bar from **Default** to **All**.
117
+
105
118
2. On the view designer select **Add Columns**, select the following columns, and then select **OK**.
106
-
- Account
107
-
- Appointment date
108
-
- Breed
109
-
- Species
110
-
3. Select the **Created On** column, select **Remove**, and then select **OK** to confirm the column removal.
111
-
4. To arrange the columns, select the column you want to move and then use the <- and -> arrow buttons until your view looks like this.
119
+
120
+
- Account
121
+
- Appointment date
122
+
- Breed
123
+
- Species
124
+
125
+
3. Select the **Created On** column, and then select **Remove**.
126
+
127
+
4. To arrange the columns, select the column you want to move and then use **Move Left** and **Move Left** until your view looks like this.
5. On the view designer toolbar, select **Save and Close**.
130
+
131
+
5. On the view designer toolbar, select **Save**.
115
132
116
133
## Model-driven apps only: Customize the main form
117
134
118
135
Skip this step if you only want to use the Pet entity in a canvas app.
119
136
120
137
1. On the left navigation pane, expand **Data**, select **Entities**, and then select **Pet**.
121
-
2. Select the **Forms** tab, and then select **Information** next to the **Main** form type to open the form editor.
138
+
139
+
2. Select the **Forms** tab, and then select **Information** next to the **Main** form type to open the form designer.
140
+
122
141
> [!div class="mx-imgBorder"]
123
142
> 
143
+
124
144
3. On the form editor, drag and drop the **Species**, **Breed**, **Appointment date**, and **Account** fields located on the Field Explorer pane on to the General section of the form canvas until the form looks like this.
145
+
125
146
> [!div class="mx-imgBorder"]
126
147
> 
148
+
127
149
4. Select **Save**.
150
+
128
151
5. Select **Publish**.
129
-
6. Select **Save and close** to close the form designer.
Copy file name to clipboardExpand all lines: powerapps-docs/maker/model-driven-apps/configure-sorting.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,22 +24,23 @@ search.app:
24
24
---
25
25
# Sort records in a model-driven app view
26
26
27
-
When you create or edit a view you can configure the sort order for either ascending or descending.
28
-
29
-
1. Sign in to [Power Apps](https://make.powerapps.com/?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc).
30
27
31
-
2. Expand **Data**, select **Entities**, and then select the entity that you want, such as **Accounts**.
28
+
When you create or edit a view you can configure the sort order for either ascending or descending.
29
+
30
+
To change the sort order in the view designer, see [Create a public view in Power Apps](create-edit-views-app-designer.md#create-a-public-view-in-power-apps).
31
+
32
+
## Change the sort order using solution explorer
32
33
33
-
3.Select the **Views** tab, and if shown, select **Remove filter**, and then open the view you want, such as **Active Accounts**.
34
+
1.Open [solution explorer](advanced-navigation.md#solution-explorer), expand **Entities**, select the entity you want, select **Views**, and then open the view you want.
34
35
35
-
4. In the view designer, select **Configure Sorting**.
36
+
2. In the view designer, select **Configure Sorting**.
5. In the **Configure Sort Order** dialog box, in the **Sort By** list, select the column you want to sort, then select **Ascending Order** or **Descending Order**.
41
+
3. In the **Configure Sort Order** dialog box, in the **Sort By** list, select the column you want to sort, then select **Ascending Order** or **Descending Order**.
41
42
42
-
6. Select **OK** to close the **Configure Sort Order** dialog box.
43
+
4. Select **OK** to close the **Configure Sort Order** dialog box.
43
44
44
45
> [!IMPORTANT]
45
46
> Grids in Unified Interface apps take the list of displayed columns from the underlying FetchXML of the view. If the FetchXML that is returned from Common Data Service does not have a column, then that column is not displayed. This is in contrast to the classic web application, where if a column is not present in FetchXML but is in LayoutXML, such a column is automatically added to the list of displayed columns. Unified Interface apps use OData directly with FetchXML to retrieve data from the server.
Copy file name to clipboardExpand all lines: powerapps-docs/maker/model-driven-apps/create-business-rules-recommendations-apply-logic-form.md
+21-23Lines changed: 21 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Create model-driven app business rules and recommendations | MicrosoftDocs"
3
3
ms.custom: ""
4
-
ms.date: 03/15/2019
4
+
ms.date: 03/30/2020
5
5
ms.reviewer: ""
6
6
ms.service: powerapps
7
7
ms.suite: ""
@@ -48,18 +48,16 @@ This topic shows you how to create business rules and recommendations to apply f
48
48
- Create business recommendations based on business intelligence.
49
49
50
50
## Create a business rule or business recommendation
51
-
52
-
1. Open [solution explorer](advanced-navigation.md#solution-explorer).
53
-
54
-
2. Open the entity you want to create the business rule for (for example, open the **Account** entity), and then double-click **Business Rules**.
55
-
56
-

57
-
58
-
3. Select **New**.
59
-
51
+
52
+
1. Sign in to [Power Apps](https://make.powerapps.com/?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc).
53
+
54
+
2. Expand **Data**, select **Entities**, select the entity you want, and then select the **Business rules** tab.
55
+
56
+
3. On the command bar, select **Add business rule**.
57
+
60
58
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.
> If you want to modify an existing business rule, you must deactivate it before you can modify it.
@@ -123,7 +121,7 @@ This topic shows you how to create business rules and recommendations to apply f
123
121
>
124
122
> - To take a snapshot of everything in the Business Rule window, click **Snapshot** on the action bar. This is useful, for example, if you want to share and get comments on the business rule from a team member.
125
123
> - Use the mini-map to navigate quickly to different parts of the process. This is useful when you have a complicated process that scrolls off the screen.
126
-
> - As you add conditions, Actions, and business recommendations to your business rule, code for the business rule is built and appears at the bottom of the designer window. This code is ready only.
124
+
> - As you add conditions, Actions, and business recommendations to your business rule, code for the business rule is built and appears at the bottom of the designer window. This code is read-only.
127
125
128
126
<aname="BKMK_LocalizingErrorMessages"></a>
129
127
## Localize error messages used in business rules
@@ -133,25 +131,25 @@ This topic shows you how to create business rules and recommendations to apply f
133
131
This section describes common issues that may occur when you use business rules.
134
132
135
133
### Full Name field not supported with unified interface apps
136
-
Actions or conditions that use a **Full Name** (fullname) field aren’t supported in apps based on the unified interface. Alternatively, you can use actions or conditions with **First Name** (firstname) and **Last Name** (lastname) fields.
134
+
Actions or conditions that use a **Full Name** (fullname) field aren't supported in apps based on the unified interface. Alternatively, you can use actions or conditions with **First Name** (firstname) and **Last Name** (lastname) fields.
137
135
138
136
### Business rules don't fire on editable grid on a dashboard
139
137
Entity scoped business rules will not fire on an editable grid when the editable grid is configured on a dashboard page.
140
138
141
139
### Is your business rule not firing for a form?
142
-
A business rule may not execute because the field referenced in the business rule isn’t included with the form.
143
-
1.Open solution explorer. Expand the entity that you want and then select **Forms**.
144
-
2.Open the form that you want and then on the form designer ribbon select **Business Rules**.
145
-
3.In the form designer, open the business rule.
146
-
4.In the business rule designer select each condition and action to verify all the fields referenced in each condition and action.
140
+
A business rule may not execute because the field referenced in the business rule isn't included with the form.
141
+
1.Open solution explorer. Expand the entity that you want and then select **Forms**.
142
+
2.Open the form that you want and then on the form designer ribbon select **Business Rules**.
143
+
3.In the form designer, open the business rule.
144
+
4.In the business rule designer select each condition and action to verify all the fields referenced in each condition and action.
147
145
148
-
> [!div class="mx-imgBorder"]
149
-
> 
146
+
> [!div class="mx-imgBorder"]
147
+
> 
150
148
151
-
5.Verify that each field referenced in the business rule is also included on the form. If not, add the missing field to the form.
149
+
5.Verify that each field referenced in the business rule is also included on the form. If not, add the missing field to the form.
152
150
153
-
> [!div class="mx-imgBorder"]
154
-
> 
151
+
> [!div class="mx-imgBorder"]
152
+
> 
155
153
156
154
## Frequently asked questions (FAQ)
157
155
*Can business rules unlock fields on a read-only form?*
0 commit comments