【问题标题】:Salesforce Validation Rule - Allow certain user & profile to modify record after it's been approvedSalesforce 验证规则 - 允许某些用户和简档在批准后修改记录
【发布时间】:2017-11-01 08:12:11
【问题描述】:

我已经寻找答案,甚至查看了我们的许多其他验证规则,但似乎还不能完全完成。我觉得我快到了,但我的语法不正确。

我正在尝试编写一个验证规则,该规则将允许某个用户和个人资料在某条记录获得批准后对其进行修改。这是我所写内容的最新版本(记录名称、用户 ID 和 profileID 被屏蔽):

AND(

 RecordType.Name = "Example Record",

 ISPICKVAL(Approval_Status__c , "Approved"),

 NOT($User.Id = "xxxxxxxxxxxxxxxx1") ||

 NOT($User.ProfileId = "xxxxxxxxxxxxxxxx2"),

OR(

 ISCHANGED(Status), 

 ISCHANGED(Requestor__c),

 ISCHANGED(Department_Owner__c),

 ISCHANGED(Support_Category__c),

 ISCHANGED(Permitting_Approval_Type__c),

 ISCHANGED(State__c), 

 ISCHANGED(County__c),

 ISCHANGED(Sites__c),

 ISCHANGED(Priority__c),

 ISCHANGED(Need_by_Date__c), 

 ISCHANGED(Days_til_Due__c), 

)

)

我通常可以在这个网站上找到一个问题/答案,它会为我指明我需要去的方向,但这次我没有这样的运气。

非常感谢任何帮助。

瑞恩

【问题讨论】:

    标签: salesforce validationrules validationrule


    【解决方案1】:

    我认为你很亲密

    AND(
    RecordType.Name = "Example Record",
    ISPICKVAL(Approval_Status__c , "Approved"),
    NOT($User.Id = "xxxxxxxxxxxxxxxx1"),
    NOT($User.ProfileId = "xxxxxxxxxxxxxxxx2"),
    OR(
    ISCHANGED(Status),
    ISCHANGED(Requestor__c),
    ISCHANGED(Department_Owner__c),
    ISCHANGED(Support_Category__c),
    ISCHANGED(Permitting_Approval_Type__c),
    ISCHANGED(State__c), 
    ISCHANGED(County__c),
    ISCHANGED(Sites__c),
    ISCHANGED(Priority__c),
    ISCHANGED(Need_by_Date__c), 
    ISCHANGED(Days_til_Due__c), 
    )
    )
    

    【讨论】:

      猜你喜欢
      • 2017-03-10
      • 1970-01-01
      • 2020-09-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-08
      • 2020-02-27
      • 2020-08-17
      相关资源
      最近更新 更多