binxie
2024-01-20 2ff0f0a7ab276c3466d9e06e14222db802194efc
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <fieldUpdates>
        <fullName>NTC_Flag</fullName>
        <field>NTC_Flag__c</field>
        <formula>IF(Not(IsBlank(EventC_ID__r.NTC_ID__c)), 1, 0)</formula>
        <name>NTC_Flag</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Unique_Set</fullName>
        <field>Unique__c</field>
        <formula>EventC_ID__c &amp; &apos;:&apos; &amp;  Opportunity__c</formula>
        <name>Unique_Set</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Event2_opp_Description</fullName>
        <field>Description__c</field>
        <formula>left( EventC_ID__r.Description__c, 255)</formula>
        <name>活動2_商談の内容を更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Visit_Head_Doctor_Flag</fullName>
        <field>Visit_Head_Doctor_Flag__c</field>
        <formula>IF(OR(
     EventC_ID__r.Visitor1_ID__r.Title_Tag__c == &quot;2&quot;, 
     EventC_ID__r.Visitor2_ID__r.Title_Tag__c == &quot;2&quot;, 
     EventC_ID__r.Visitor3_ID__r.Title_Tag__c == &quot;2&quot;, 
     EventC_ID__r.Visitor4_ID__r.Title_Tag__c  == &quot;2&quot;, 
     EventC_ID__r.Visitor5_ID__r.Title_Tag__c  == &quot;2&quot;
  ), 1, 0
)</formula>
        <name>主任已访问</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Visit_President_Flag</fullName>
        <field>Visit_President_Flag__c</field>
        <formula>IF(OR(
EventC_ID__r.Visitor1_ID__r.Title_Tag__c == &quot;1&quot;,
EventC_ID__r.Visitor2_ID__r.Title_Tag__c == &quot;1&quot;,
EventC_ID__r.Visitor3_ID__r.Title_Tag__c == &quot;1&quot;,
EventC_ID__r.Visitor4_ID__r.Title_Tag__c == &quot;1&quot;,
EventC_ID__r.Visitor5_ID__r.Title_Tag__c == &quot;1&quot;
), 1, 0
)</formula>
        <name>院长已访问</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>活动_询价_Insert</fullName>
        <actions>
            <name>NTC_Flag</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Unique_Set</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Visit_Head_Doctor_Flag</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Visit_President_Flag</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>true</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>活動2_商談が更新される時いつでも</fullName>
        <actions>
            <name>Update_Event2_opp_Description</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>