使用層次結構自定義設定禁用工作流程驗證規則
自定義設定
http://i.stack.imgur.com/XchCX.jpg
自定義設定欄位
http://i.stack.imgur.com/W2uCa.jpg
自定義設定欄位值
選中該欄位後,將禁用驗證規則,對於正在執行的使用者或在此示例中,其配置檔案 -
http://i.stack.imgur.com/GKRJC.jpg
也可以為整個 Salesforce 組織禁用該規則 -
http://i.stack.imgur.com/DD4sE.jpg
驗證規則
AND(
/* the below is the reference to the Val_Rule_Cntrlr__c custom setting's checkbox field All_Opportunity_Disabled__c
*/
$Setup.Val_Rule_Cntrlr__c.All_Opportunity_Disabled__c = FALSE,
/* the below is the remainder of the validation rule's formula
*/
CloseDate < TODAY()
)
在上述規則中,兩條標準必須評估為 TRUE
才能觸發規則。
由於當執行使用者的配置檔案是系統管理員時,All_Opportunity_Disabled__c
核取方塊將評估為 TRUE
,該規則將評估為 FALSE
。
工作流程規則
可以應用相同的方法來停用工作流規則。