binxie
2024-01-17 92d30efcdebfc59500385e018d597a6b6a946075
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Internal_staff_SFDC_ID_user_manage_info</fullName>
    <active>false</active>
    <errorConditionFormula>AND(RecordType.Id =&quot;01210000000Qtky&quot;,
$Profile.Id != &quot;00e10000000Y3o5&quot;, 
NOT(ISBLANK( User__c )),
OR( 
  ISCHANGED(Email) &amp;&amp; Email != User__r.Email,
  ISCHANGED(Post_picklist__c) &amp;&amp; TEXT(Post_picklist__c) != Text(User__r.Post__c),
  ISCHANGED(Job_Category_picklist__c) &amp;&amp; TEXT(Job_Category_picklist__c) != Text(User__r.Job_Category__c),
  ISCHANGED(Work_Location_manual__c) &amp;&amp; Work_Location_manual__c != Text(User__r.Work_Location__c),
  ISCHANGED(Employee_No_manual__c),
  ISCHANGED(MobilePhone) &amp;&amp; MobilePhone != User__r.Mobile_Phone__c,
  ISCHANGED(Hire_date_text__c),
  ISCHANGED(Gender_text__c),
  ISCHANGED(Dept_text__c),
  ISCHANGED(Stay_or_not__c) &amp;&amp; TEXT(Stay_or_not__c) != TEXT(User__r.Stay_or_not__c)
))</errorConditionFormula>
    <errorDisplayField>Visit_Count10__c</errorDisplayField>
    <errorMessage>已有SalesForce账户,如需要修改信息,请联系系统管理员</errorMessage>
</ValidationRule>