Skip to content

Commit 3c6c559

Browse files
authored
Live publish
2 parents 6aa28b1 + df5e59e commit 3c6c559

20 files changed

+360
-224
lines changed

powerapps-docs/maker/common-data-service/create-custom-entity.md

Lines changed: 65 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -36,63 +36,75 @@ Sign in to [Power Apps](https://make.powerapps.com/?utm_source=padocs&utm_medium
3636
## Create a custom entity
3737

3838
1. On the left navigation pane expand **Data**, select **Entities**, and then select **New entity**.
39+
3940
> [!div class="mx-imgBorder"]
4041
> ![New entity](media/create-custom-entity/create-new-entity.png)
41-
2. In the right pane, enter the following values, and then select **Next**.
42-
- **Display name**: *Pet*
43-
- **Description**: *Custom entity to track pet services*
44-
3. Select **Save Entity**.
42+
43+
2. In the right pane, enter the following values, and then select **Create**.
44+
45+
- **Display name**: *Pet*
46+
- **Description**: *Custom entity to track pet services*
4547

4648
## Add and customize fields
4749

4850
1. In the list of entities, select the **Pet** entity that was created in the previous section.
51+
4952
2. On the **Fields** tab, select the **Pet** field.
53+
5054
3. In the right pane make the following changes to the **Display name** field:
51-
- Change the **Display name** from **Pet** to *Pet Name*
52-
- Select **Searchable**
55+
56+
- Change the **Display name** from **Pet** to *Pet Name*
57+
- Select **Searchable**
5358

54-
> [!div class="mx-imgBorder"]
55-
> ![Change primary field](media/create-custom-entity/primary-field.png)
56-
3. Select **Done**.
57-
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.
58-
- **Display name**. *Species*
59-
- **Data type**. *Option Set*
60-
- **Option set**. *New option set*
61-
5. Create the option set
59+
> [!div class="mx-imgBorder"]
60+
> ![Change primary field](media/create-custom-entity/primary-field.png)
61+
62+
4. Select **Done**.
6263

63-
a. Select **Add new item**.
64+
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*
6468

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**.
7270

73-
> [!div class="mx-imgBorder"]
74-
> ![New option set](media/create-custom-entity/optionset-add-items.png)
71+
7. Create the option set
72+
73+
a. Replace **New option** with *Dog*.
74+
75+
b. Select **Add new item**.
76+
77+
c. Replace **New option** with *Cat*.
78+
79+
d. Select **Save**.
80+
81+
> [!div class="mx-imgBorder"]
82+
> ![New option set](media/create-custom-entity/optionset-add-items.png)
7583
7684
6. Select **Searchable**, and then select **Done**.
7785

7886
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**.
8291

8392
8. On the entity designer toolbar select **Add field**.
8493

8594
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*
8897

89-
10. Select **Save Entity**.
98+
10. Select **Done**.
9099

91100
## Add a relationship
92101

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+
94104
2. On the right pane, in the **Related** list select **Account**.
105+
95106
3. Select **Done**.
107+
96108
4. Select **Save Entity**.
97109

98110
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
101113
102114
## Customize a view
103115

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+
105118
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.
112128
> [!div class="mx-imgBorder"]
113129
> ![Active pets view](media/create-custom-entity/active-pets-view.png)
114-
5. On the view designer toolbar, select **Save and Close**.
130+
131+
5. On the view designer toolbar, select **Save**.
115132

116133
## Model-driven apps only: Customize the main form
117134

118135
Skip this step if you only want to use the Pet entity in a canvas app.
119136

120137
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+
122141
> [!div class="mx-imgBorder"]
123142
> ![Edit main form](media/create-custom-entity/main-form-edit.png)
143+
124144
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+
125146
> [!div class="mx-imgBorder"]
126147
> ![Select fields for main form](media/create-custom-entity/main-form-edit2.png)
148+
127149
4. Select **Save**.
150+
128151
5. Select **Publish**.
129-
6. Select **Save and close** to close the form designer.
152+
153+
6. Return to the Power Apps home page.
130154

131155
## Add the custom entity to an app
132156

2.12 KB
Loading
-3.25 KB
Loading
30.5 KB
Loading
1.2 KB
Loading
-76.3 KB
Loading

powerapps-docs/maker/model-driven-apps/configure-sorting.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,23 @@ search.app:
2424
---
2525
# Sort records in a model-driven app view
2626

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).
3027

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
3233

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.
3435

35-
4. In the view designer, select **Configure Sorting**.
36+
2. In the view designer, select **Configure Sorting**.
3637

3738
> [!div class="mx-imgBorder"]
38-
> ![Configure sorting](media/configure-sorting.png)
39+
> ![Configure sorting](media/configure-sorting.png "Configure sorting")
3940
40-
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**.
4142

42-
6. Select **OK** to close the **Configure Sort Order** dialog box.
43+
4. Select **OK** to close the **Configure Sort Order** dialog box.
4344

4445
> [!IMPORTANT]
4546
> 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.

powerapps-docs/maker/model-driven-apps/create-business-rules-recommendations-apply-logic-form.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Create model-driven app business rules and recommendations | MicrosoftDocs"
33
ms.custom: ""
4-
ms.date: 03/15/2019
4+
ms.date: 03/30/2020
55
ms.reviewer: ""
66
ms.service: powerapps
77
ms.suite: ""
@@ -48,18 +48,16 @@ This topic shows you how to create business rules and recommendations to apply f
4848
- Create business recommendations based on business intelligence.
4949

5050
## 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-
![Create a business rule in the default solution](media/create-business-rule-the-default-solution.png "Create a business rule in the default solution")
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+
6058
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.
6159

62-
![Business Rules design window](media/business-rules-design-window.png "Business Rules design window")
60+
![Business Rules design window](media/business-rules-design-window.png "Business Rules design window")
6361

6462
> [!TIP]
6563
> 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
123121
>
124122
> - 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.
125123
> - 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.
127125
128126
<a name="BKMK_LocalizingErrorMessages"></a>
129127
## 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
133131
This section describes common issues that may occur when you use business rules.
134132

135133
### Full Name field not supported with unified interface apps
136-
Actions or conditions that use a **Full Name** (fullname) field arent 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.
137135

138136
### Business rules don't fire on editable grid on a dashboard
139137
Entity scoped business rules will not fire on an editable grid when the editable grid is configured on a dashboard page.
140138

141139
### Is your business rule not firing for a form?
142-
A business rule may not execute because the field referenced in the business rule isnt 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.
147145

148-
> [!div class="mx-imgBorder"]
149-
> ![](media/business-rule-field.png "Field referenced in business rule exists in entity")
146+
> [!div class="mx-imgBorder"]
147+
> ![](media/business-rule-field.png "Field referenced in business rule exists in entity")
150148
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.
152150

153-
> [!div class="mx-imgBorder"]
154-
> ![](media/account-name-on-form.png "Account name field on form")
151+
> [!div class="mx-imgBorder"]
152+
> ![](media/account-name-on-form.png "Account name field on form")
155153
156154
## Frequently asked questions (FAQ)
157155
*Can business rules unlock fields on a read-only form?*

0 commit comments

Comments
 (0)