From e0de9222da210f9c8eb1a9f5400f936a14923e11 Mon Sep 17 00:00:00 2001 From: binxie <137736985@qq.com> Date: 星期六, 20 一月 2024 13:16:47 +0800 Subject: [PATCH] addvalidationrule --- force-app/main/default/objects/Report__c/validationRules/Only_OPDtoSIS.validationRule-meta.xml | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/force-app/main/default/objects/Report__c/validationRules/Only_OPDtoSIS.validationRule-meta.xml b/force-app/main/default/objects/Report__c/validationRules/Only_OPDtoSIS.validationRule-meta.xml index 5d5f667..c87e412 100644 --- a/force-app/main/default/objects/Report__c/validationRules/Only_OPDtoSIS.validationRule-meta.xml +++ b/force-app/main/default/objects/Report__c/validationRules/Only_OPDtoSIS.validationRule-meta.xml @@ -6,22 +6,22 @@ <errorConditionFormula>ISCHANGED(RecordTypeId) && ( /**OPD鎴朣IS鍙樺埌闈濷PDSIS**/ - ((PRIORVALUE(RecordTypeId) = "012C600000003KJ" + ((PRIORVALUE(RecordTypeId) = "01210000000RLTi" || - PRIORVALUE(RecordTypeId) = "012C600000003KG") + PRIORVALUE(RecordTypeId) = "01210000000Qekj") && - (RecordTypeId <> "012C600000003KJ" + (RecordTypeId <> "01210000000RLTi" && - RecordTypeId <> "012C600000003KG")) + RecordTypeId <> "01210000000Qekj")) || /**闈濷PDSIS鍙樺埌OPD鎴朣IS**/ - ((PRIORVALUE(RecordTypeId) <> "012C600000003KJ" + ((PRIORVALUE(RecordTypeId) <> "01210000000RLTi" && - PRIORVALUE(RecordTypeId) <> "012C600000003KG") + PRIORVALUE(RecordTypeId) <> "01210000000Qekj") && - (RecordTypeId = "012C600000003KJ" + (RecordTypeId = "01210000000RLTi" || - RecordTypeId = "012C600000003KG")) + RecordTypeId = "01210000000Qekj")) )</errorConditionFormula> <errorDisplayField>AWS_Data_Id__c</errorDisplayField> <errorMessage>鍙兘鍦∣PD鎶ュ憡涔﹀拰SIS鎶ュ憡涔︾殑绫诲瀷涔嬮棿鐩镐簰鍙樻崲</errorMessage> -- Gitblit v1.9.1