| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <fullName>Cannot_change_to_other_department_class</fullName> |
| | | <active>false</active> |
| | | <active>true</active> |
| | | <description>HWAG-AUA5GR |
| | | SWAG-C67ASQ 权限先给助理2S6/2S8/2S9 |
| | | 1208 同时也给2S5</description> |
| | |
| | | $User.ProfileId <> LEFT($Label.ProfileId_SystemAdmin, 15) && |
| | | NOT(ISNEW()) && ISCHANGED(AccountId) && |
| | | Account.ParentId <> PRIORVALUE(Department_Class__c) && NOT( OR( Product2.Dealer_special_Object__c , Product2.Dealer_Object__c, Product2.ENG_DeaerProFlag__c )) && |
| | | Account.RecordTypeId <> '012C600000003HG' && RecordTypeId <> '012C600000003Hv' |
| | | Account.RecordTypeId <> '01210000000gT1X' && RecordTypeId <> '01210000000kOPR' |
| | | && !CONTAINS($Profile.Name, '2S5') &&!CONTAINS($Profile.Name, '2S6') && |
| | | !CONTAINS($Profile.Name, '2S8') && |
| | | !CONTAINS($Profile.Name, '2S9')&& |