公告板
版本库
filestore
活动
搜索
登录
main
/
AliOlySFDCSta
阿里测试环境用
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
Add Connected App0117
binxie
2024-01-17
92d30efcdebfc59500385e018d597a6b6a946075
[AliOlySFDCSta.git]
/
force-app
/
main
/
default
/
objects
/
LastbuyProduct__c
/
validationRules
/
Check_FinishedOpp.validationRule-meta.xml
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Check_FinishedOpp</fullName>
<active>true</active>
<description>保存时拦截询价修改</description>
<errorConditionFormula>AND(OR(ISNEW(), ISCHANGED(InquiryCode__c) ), OR( InquiryCode__r.SAP_Send_OK__c, InquiryCode__r.StageName__c = '取消', InquiryCode__r.StageName__c = '失单'))</errorConditionFormula>
<errorDisplayField>InquiryCode__c</errorDisplayField>
<errorMessage>询价已经win或已经取消/失单,请勿关联预留产品</errorMessage>
</ValidationRule>