分享方式:


<RecordPrivilegeRule> (RibbonDiffXml)

適用於: CRM 2015 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:

 

Value Description

PrimaryEntity

對於表單或子格功能區,規則會套用至表單中顯示的實體。此選項不適用於方格功能區。

Enumeration

Optional

Default

設定當無法判斷實際值時,規則的預設傳回值。

Boolean

Optional

InvertResult

變換規則傳回值的正負號。

Boolean

Optional

PrivilegeType

Describes the type of operation for the privilege.

Valid values:

 

Value Description

Create

建立此實體的新實體執行個體。

Read

檢視此實體的記錄。

Write

更新實體執行個體。

Delete

刪除此實體的記錄。

Assign

變更使用者擁有實體執行個體的擁有者。

Share

將特定權限指派給實體執行個體的另一位使用者。

Append

將選取的實體執行個體與另一個實體執行個體產生關聯。

AppendTo

將實體執行個體與此實體執行個體產生關聯。

Enumeration

Required

子元素

此元素沒有子元素。

上層元素

Element Description

<EnableRule> (RibbonDiffXml)

指定用於啟用或停用功能區元素或命令定義中 EnableRule 參照的規則定義。

<Or> (RibbonDiffXml)

指定一組必須同時評估的規則。

元素資訊

XPath

//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/RecordPrivilegeRule
//RibbonDiffXml/RuleDefinitions/EnableRules/EnableRule/OrRule/Or/RecordPrivilegeRule

Schema Name

RecordPrivilegeRuleType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

請參閱

其他資源

Ribbon XML reference
自訂命令和功能區

Microsoft Dynamics CRM 2015 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.