binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Uneditable_for_Not_Sysadmin_User</fullName>
    <active>true</active>
    <description>以下のプロファイルのユーザ以外はユーザ情報の変更は不可
・123_Te2am小组
・000_系统管理者
・系统管理员</description>
    <errorConditionFormula>And( 
      Not(
        OR(
          $User.ProfileId = &quot;00e10000000dCsQ&quot;,
          $User.ProfileId = &quot;00e10000000Y3o5&quot;,
      $User.ProfileId = &quot;00e10000000dEQx&quot;
         )),
OR(
ISCHANGED(Fax),
ISCHANGED(CommunityNickname),
ISCHANGED(Division),
ISCHANGED(Email),
ISCHANGED(Username),
ISCHANGED(CompanyName),
ISCHANGED(MobilePhone),
ISCHANGED(StartDay),
ISCHANGED(EndDay),
ISCHANGED(EmployeeNumber),
ISCHANGED(Phone),
ISCHANGED(Extension),
ISCHANGED(Department),
ISCHANGED(Alias),
ISCHANGED(Title),
ISCHANGED(IsActive),
ISCHANGED(Batch_User__c),
ISCHANGED(Cost_Referable__c),
ISCHANGED(Quote_Correct__c),
ISCHANGED(Quote_Special_Operation__c),
ISCHANGED(SAP_Send_OFF__c)
))</errorConditionFormula>
    <errorMessage>不能变更用户信息,请联络系统管理员。
ユーザ情報は変更できません。システム管理者に連絡してください。</errorMessage>
</ValidationRule>