<?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 & ':' & 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 == "2",
|
EventC_ID__r.Visitor2_ID__r.Title_Tag__c == "2",
|
EventC_ID__r.Visitor3_ID__r.Title_Tag__c == "2",
|
EventC_ID__r.Visitor4_ID__r.Title_Tag__c == "2",
|
EventC_ID__r.Visitor5_ID__r.Title_Tag__c == "2"
|
), 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 == "1",
|
EventC_ID__r.Visitor2_ID__r.Title_Tag__c == "1",
|
EventC_ID__r.Visitor3_ID__r.Title_Tag__c == "1",
|
EventC_ID__r.Visitor4_ID__r.Title_Tag__c == "1",
|
EventC_ID__r.Visitor5_ID__r.Title_Tag__c == "1"
|
), 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>
|