fuyu
2023-01-05 c2c5fc25aa9e92a0ab8ebcea4e01a176359d2f78
1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>When_Apply_Required</fullName>
    <active>true</active>
    <errorConditionFormula>Ischanged(ApprovalProcess_Status__c) &amp;&amp; Text(ApprovalProcess_Status__c) = &apos;已填写完并申请&apos;
&amp;&amp; OR(
  Isnull(Maintenance_Contract__r.Service_Contract_Staff__c)
/*  Isnull(Maintenance_Contract__r.Service_Contract_Staff__c)*/
)</errorConditionFormula>
    <errorMessage>维修合同里没有设定「主担当者」!</errorMessage>
</ValidationRule>