应用到: CRM 2016 on-prem, CRM Online
一项规则,用于检测用户对特定记录具有的权限以便启用功能区元素。
语法
<RecordPrivilegeRule 
 AppliesTo="PrimaryEntity" 
 Default=["0" | "1" | "true" | "false"]
 InvertResult=["0" | "1" | "true" | "false"]
 PrivilegeType=[ "Create" | "Read"  | "Write" | "Delete" | "Assign" | "Share" | "Append" | "AppendTo" ]
 />
属性和元素
The following describes the attributes, child elements, and parent elements.
属性
| Attribute | Description | Type | Usage | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AppliesTo | 确定此规则适用于窗体中将显示的实体记录还是子网格中将显示的实体记录。 Valid values: 
 | Enumeration | Optional | ||||||||||||||||||
| Default | 如果无法确定实际值,则设置规则的默认返回值。 | Boolean | Optional | ||||||||||||||||||
| InvertResult | 对此规则的返回值求反。 | Boolean | Optional | ||||||||||||||||||
| PrivilegeType | Describes the type of operation for the privilege. Valid values: 
 | Enumeration | Required | 
子元素
此元素没有子元素。
父元素
| Element | Description | 
|---|---|
| 指定用于启用或禁用功能区元素的规则定义或指定对命令定义中的 EnableRule 的引用。 | |
| 指定一组必须一起评估的规则。 | 
元素信息
| XPath |  | 
| Schema Name | RecordPrivilegeRuleType | 
| Validation File | RibbonTypes.xsd | 
| Can be Empty | Yes | 
另请参阅
其他资源
Ribbon XML reference
自定义命令和功能区
Microsoft Dynamics CRM 2016 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.