| | |
| | | <fullName>Must_Is_DeptClas</fullName> |
| | | <active>true</active> |
| | | <description>必须填写该医院下的战略科室</description> |
| | | <errorConditionFormula>$User.ProfileId <>'00eC800000005Cb' |
| | | <errorConditionFormula>$User.ProfileId <>'00e10000000Y3o5' |
| | | && |
| | | NOT($User.Batch_User__c) |
| | | && |
| | | Isnew() && OR ( |
| | | /* 看父记录,是医院,没有选相应的战略科室 ==> 报错 */ |
| | | AND(Account__r.Parent.Parent.RecordTypeId = "012C600000003HZ", |
| | | AND(Account__r.Parent.Parent.RecordTypeId = "01210000000QemG", |
| | | Account__r.ParentId <> Strategic_dept__c |
| | | ) |
| | | )</errorConditionFormula> |