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/Asset/validationRules/FSE_Cannot_change_to_other_hospital.validationRule-meta.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/force-app/main/default/objects/Asset/validationRules/FSE_Cannot_change_to_other_hospital.validationRule-meta.xml b/force-app/main/default/objects/Asset/validationRules/FSE_Cannot_change_to_other_hospital.validationRule-meta.xml index 4534bad..347370c 100644 --- a/force-app/main/default/objects/Asset/validationRules/FSE_Cannot_change_to_other_hospital.validationRule-meta.xml +++ b/force-app/main/default/objects/Asset/validationRules/FSE_Cannot_change_to_other_hospital.validationRule-meta.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> <fullName>FSE_Cannot_change_to_other_hospital</fullName> - <active>false</active> + <active>true</active> <description>SWAG-C8MB5U</description> <errorConditionFormula>$User.Batch_User__c = false && $User.ProfileId <> LEFT($Label.ProfileId_SystemAdmin, 15) && OR(CONTAINS($Profile.Name, '2S5'),CONTAINS($Profile.Name, '2S6'),CONTAINS($Profile.Name, '2S8'),CONTAINS($Profile.Name, '2S9'),CONTAINS($Profile.Name, '2S1')) && NOT(ISNEW()) && Account.Parent.ParentId <> PRIORVALUE( Hospital__c ) && NOT( OR( Product2.Dealer_special_Object__c , Product2.Dealer_Object__c, Product2.ENG_DeaerProFlag__c )) && -Account.RecordTypeId <> '012C600000003HG' && RecordTypeId <> '012C600000003Hv'</errorConditionFormula> +Account.RecordTypeId <> '01210000000gT1X' && RecordTypeId <> '01210000000kOPR'</errorConditionFormula> <errorDisplayField>AccountId</errorDisplayField> <errorMessage>涓嶈兘淇敼涓哄叾浠栧尰闄㈢殑绉戝銆�</errorMessage> </ValidationRule> -- Gitblit v1.9.1