<RecordPrivilegeRule> (RibbonDiffXml)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
A rule that detects a user’s privileges for a specific record in order to enable a ribbon element.
Syntax
<RecordPrivilegeRule
AppliesTo="PrimaryEntity"
Default=["0" | "1" | "true" | "false"]
InvertResult=["0" | "1" | "true" | "false"]
PrivilegeType=[ "Create" | "Read" | "Write" | "Delete" | "Assign" | "Share" | "Append" | "AppendTo" ]
/>
Attributes and Elements
The following describes the attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
Type |
Usage |
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AppliesTo |
Determines whether the rule applies to the entity record being displayed in the form or entity records being displayed in a sub-grid. Valid values:
|
Enumeration |
Optional |
||||||||||||||||||
Default |
Sets the default return value for the rule if the actual value cannot be determined. |
Boolean |
Optional |
||||||||||||||||||
InvertResult |
Negates the return value of the rule. |
Boolean |
Optional |
||||||||||||||||||
PrivilegeType |
Describes the type of operation for the privilege. Valid values:
|
Enumeration |
Required |
Child Elements
This element has no child elements.
Parent Elements
Element |
Description |
---|---|
Specifies either the definition of a rule used to enable or disable a ribbon element or a reference to an EnableRule from a command definition. |
|
Specifies a set of rules that must be evaluated together. |
Element Information
XPath |
|
Schema Name |
RecordPrivilegeRuleType |
Validation File |
RibbonTypes.xsd |
Can be Empty |
Yes |
See Also
Ribbon XML reference
Customize commands and the ribbon
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright