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
Copy file name to clipboardExpand all lines: powerapps-docs/developer/model-driven-apps/define-ribbon-display-rules.md
+82-79Lines changed: 82 additions & 79 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: "Define ribbon display rules (model-driven apps) | Microsoft Docs" # Inte
3
3
description: "Learn about defining specific rules to control when the ribbon elements will display during the configuration of ribbon elements. "# 115-145 characters including spaces. This abstract displays in the search result."
4
4
author: HemantGaur
5
5
ms.author: hemantg
6
-
ms.date: 05/24/2022
6
+
ms.date: 02/02/2024
7
7
ms.reviewer: jdaly
8
8
ms.topic: article
9
9
ms.subservice: mda-developer
@@ -21,7 +21,6 @@ contributors:
21
21
When configuring ribbon elements, you can define specific rules to control when the ribbon elements will display.
22
22
23
23
- Use the /`RuleDefinitions`/DisplayRules/`<DisplayRule>` element to define rules controlling when the ribbon element should be displayed.
24
-
25
24
- Use the /CommandDefinitions/`CommandDefinition`/DisplayRules/`<DisplayRule>` element to associate specific display rules to a command definition.
Use this kind of rule to display ribbon elements when a user has specific privileges for a table. You must specify the privilege depth and the specific privilege you want to check.
79
-
80
-
`<EntityPropertyRule>`
81
-
Allows definition of rules depending on the Boolean values of specific table properties. `PropertyName` options are as follows:
76
+
### `<EntityPrivilegeRule>`
82
77
83
-
- DuplicateDetectionEnabled
78
+
Use this kind of rule to display ribbon elements when a user has specific privileges for a table. You must specify the privilege depth and the specific privilege you want to check.
84
79
85
-
- GridFiltersEnabled
80
+
### `<EntityPropertyRule>`
86
81
87
-
- HasStateCode
82
+
Allows definition of rules depending on the Boolean values of specific table properties. `PropertyName` options are as follows:
88
83
89
-
- IsConnectionsEnabled
84
+
- DuplicateDetectionEnabled
85
+
- GridFiltersEnabled
86
+
- HasStateCode
87
+
- IsConnectionsEnabled
88
+
- MailMergeEnabled
89
+
- WorksWithQueue
90
+
- HasActivities
91
+
- IsActivity
92
+
- HasNotes
90
93
91
-
- MailMergeEnabled
94
+
### `<EntityRule>`
92
95
93
-
- WorksWithQueue
96
+
This rule allow for evaluation of the current table. This is useful when you define custom actions that apply to the table template instead of for specific tables. For example, you may want to add a ribbon element to all tables except for some specific tables. It is easier to define the custom action for the table template that applies to all tables and then use an `EntityRule` to filter out those that should be excluded.
94
97
95
-
- HasActivities
98
+
The `EntityRule` also includes an optional context parameter to specify whether the table is being displayed in the form or a list (HomePageGrid). The optional `AppliesTo` parameter can be set to `PrimaryEntity` or `SelectedEntity` to distinguish whether the table is being displayed in a subgrid.
This rule allow for evaluation of the current table. This is useful when you define custom actions that apply to the table template instead of for specific tables. For example, you may want to add a ribbon element to all tables except for some specific tables. It is easier to define the custom action for the table template that applies to all tables and then use an `EntityRule` to filter out those that should be excluded.
104
+
### `<FormStateRule`
103
105
104
-
The `EntityRule` also includes an optional context parameter to specify whether the table is being displayed in the form or a list (HomePageGrid). The optional `AppliesTo` parameter can be set to `PrimaryEntity` or `SelectedEntity` to distinguish whether the table is being displayed in a subgrid.
106
+
Use the form state rule to determine the current type of form that is displaying a record. `State` options are as follows:
Use this to display a ribbon element if specific organization settings are enabled. Setting options are as follows:
133
+
### `<MiscellaneousPrivilegeRule>`
144
134
145
-
- IsSharepointEnabled
135
+
Use this kind of rule to check for privileges that do not apply to a specific table, such as ExportToExcel, MailMerge, or GoOffline.
146
136
147
-
- IsSOPIntegrationEnabled
137
+
### `<OrganizationSettingRule>`
148
138
139
+
Use this to display a ribbon element if specific organization settings are enabled. Setting options are as follows:
140
+
141
+
- IsSharepointEnabled
142
+
- IsSOPIntegrationEnabled
149
143
- IsFiscalCalendarDefined
150
144
151
-
`<OrRule>`
152
-
This rule lets you override the default AND comparison for multiple display rule types. Use the `OrRule` element to define several possible valid combinations to check.
145
+
### `<OrRule>`
153
146
154
-
`<OutlookRenderTypeRule>`
155
-
Use this to display a ribbon element if the ribbon is being displayed in [!INCLUDE[pn_MS_Outlook_Short](../../includes/pn-ms-outlook-short.md)] in a specific way. `Type` options are as follows:
147
+
This rule lets you override the default AND comparison for multiple display rule types. Use the `OrRule` element to define several possible valid combinations to check.
156
148
157
-
- Web
158
149
159
-
- Outlook
150
+
### `<OutlookRenderTypeRule>`
160
151
161
-
`<OutlookVersionRule>`
162
-
Use this to display a ribbon element for a specific version of Outlook. `Version` options are as follows:
152
+
Use this to display a ribbon element if the ribbon is being displayed in [!INCLUDE[pn_MS_Outlook_Short](../../includes/pn-ms-outlook-short.md)] in a specific way. `Type` options are as follows:
163
153
164
-
- 2003
154
+
- Web
155
+
- Outlook
165
156
166
-
- 2007
157
+
### `<OutlookVersionRule>`
167
158
159
+
Use this to display a ribbon element for a specific version of Outlook. `Version` options are as follows:
160
+
161
+
- 2003
162
+
- 2007
168
163
- 2010
169
164
170
-
`<PageRule>`
171
-
This type of rule checks the URL of the page being displayed. It returns true if the address matches.
165
+
### `<PageRule>`
172
166
173
-
`<RelationshipTypeRule>`
174
-
This type of rule is applied to records selected in a grid. It lets you determine the type of relationship, as follows:
167
+
This type of rule checks the URL of the page being displayed. It returns true if the address matches.
175
168
176
-
- OneToMany
169
+
### `<ReferencingAttributeRequiredRule>`
177
170
178
-
- ManyToMany
171
+
A rule that detects whether the referencing attribute for an entity is required.
179
172
173
+
This is a very specific rule for a very specific case. Use this rule when there is a relationship bound subgrid or an associated grid on the page. This rule will test whether the referencing attribute used in the relationship is required. This rule is used to hide the Add Existing record type button when it isn’t appropriate to display it.
174
+
175
+
In an entity relationship the lookup field in the related record (the referencing attribute) may be required or not. For example, the Regarding field of an activity is not required yet the Potential Customer field of an opportunity is required. The Add Existing Activity button will set the Regarding field value to the current record context and it can only work if the Regarding field doesn’t already have a value. All Opportunity records have a value in their Potential Customer field, so it never makes sense to display an Add Existing Opportunity button. This rule detects that the referencing attribute is required and therefore returns true.
176
+
177
+
### `<RelationshipTypeRule>`
178
+
179
+
This type of rule is applied to records selected in a grid. It lets you determine the type of relationship, as follows:
180
+
181
+
- OneToMany
182
+
- ManyToMany
180
183
- NoRelationship
181
184
182
-
`<SkuRule>`
183
-
Use this kind of rule to display a ribbon element for a specific SKU version of Microsoft Dataverse, as follows:
185
+
### `<SkuRule>`
186
+
187
+
Use this kind of rule to display a ribbon element for a specific SKU version of Microsoft Dataverse, as follows:
184
188
185
189
- OnPremise
186
-
187
190
- Online
188
-
189
191
- Spla
190
192
191
-
`<ValueRule>`
192
-
Use this rule to check the value of a specific column in the record being displayed in the form.
193
+
### `<ValueRule>`
194
+
195
+
Use this rule to check the value of a specific column in the record being displayed in the form.
193
196
194
197
> [!NOTE]
195
198
> For commands defined for subgrid for forms using the updated user experience, value rules cannot be used within display rules. Use this element within an `<EnableRule>` to hide an element.
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/ai-overview.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ To learn how to use the new AI features in Power Apps, see:
55
55
56
56
3. On the **Features** settings page, under **AI Builder**, enable or disable **AI Builder preview models**.
57
57
58
-
## Disable Copilot in Power Apps
58
+
## Enable or disable Copilot in Power Apps
59
59
60
60
For this preview, Copilot in Power Apps is enabled by default. To disable it, you need to have administrator access.
61
61
@@ -68,12 +68,14 @@ Follow these steps to disable **Copilot** in Power Apps for your tenant.
68
68
> [!NOTE]
69
69
> Turning off Copilot for your tenant will only disable Copilot for makers. It won't disable [Copilot control for canvas apps](add-ai-copilot.md) or [Copilot for model-driven apps](../model-driven-apps/add-ai-copilot.md).
70
70
71
-
Follow these steps to disable **Copilot** for your environment.
71
+
Follow these steps to enable or disable **Copilot** for your environment.
72
72
73
73
1. Sign in to the [Power Platform admin center](https://admin.powerplatform.microsoft.com/).
74
74
2. In the left-side navigation pane **Environment**.
75
75
3. Select the environment and on the command bar, select **Settings**.
76
-
4. Set the toggle to **Off** for **Copilot**.
76
+
4. Select one of the following options:
77
+
- To turn it on, set the toggle to **On** for **Copilot**.
78
+
- To turn it off, set the toggle to **Off** for **Copilot**.
0 commit comments