binxie
2024-01-20 0a2fc19461a141fbbb2c303142afdee22c72daac
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>LeadSource_Check</fullName>
    <active>true</active>
    <description>当从产品咨询单或招标项目跳转到意向时,潜在客户来源不可修改</description>
    <errorConditionFormula>AND(OR(ISCHANGED(LeadSource), ISNEW()), OR(AND(NOT(ISBLANK(Tender_information__c)),TEXT(LeadSource)!=&apos;招标网&apos;), AND(NOT(ISBLANK(Lead_Inquiry_form__c)),AND(TEXT(LeadSource)!=&apos;智慧医疗&apos;,TEXT(LeadSource)!=&apos;学会会议&apos;)), AND(NOT(ISBLANK(Agency_Opportunity__c)),TEXT(LeadSource)!=&apos;经销商&apos;)))</errorConditionFormula>
    <errorDisplayField>LeadSource</errorDisplayField>
    <errorMessage>当从产品咨询单或招标项目跳转到意向时,潜在客户来源不可修改</errorMessage>
</ValidationRule>