<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>On_Call_unfollow_Alert</fullName>
|
<description>【提醒】未跟进完毕的On-Call通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/OnCall</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>Account_Salesdepartment</fullName>
|
<field>Account_Salesdepartment__c</field>
|
<formula>segment__r.Salesdepartment_Dept__c</formula>
|
<name>「科室-本部」設定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>On_Call_FinalStatus_return</fullName>
|
<field>FinalStatus__c</field>
|
<name>On-Call跟进结果换到</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>On_Call_Update_FinalStatus</fullName>
|
<field>FinalStatus__c</field>
|
<literalValue>OnCall完毕</literalValue>
|
<name>On-Call结束后更新跟进结果</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Account_State</fullName>
|
<field>Account_State__c</field>
|
<formula>segment__r.State_Department__c</formula>
|
<name>「科室-省」設定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Creator_Job_Catetory</fullName>
|
<field>Creator_Job_Category__c</field>
|
<formula>text( CreatedBy.Job_Category__c )</formula>
|
<name>「作成者-職種」設定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>On-Call未跟进通知</fullName>
|
<active>true</active>
|
<criteriaItems>
|
<field>On_Call__c.elapsed__c</field>
|
<operation>greaterThan</operation>
|
<value>72</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>On_Call__c.Status_c__c</field>
|
<operation>equals</operation>
|
<value>跟进中</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
<workflowTimeTriggers>
|
<actions>
|
<name>On_Call_unfollow_Alert</name>
|
<type>Alert</type>
|
</actions>
|
<offsetFromField>On_Call__c.Taking_call_Time_c__c</offsetFromField>
|
<timeLength>1</timeLength>
|
<workflowTimeTriggerUnit>Hours</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
</rules>
|
<rules>
|
<fullName>On-Call毎回実行公式变成到文本</fullName>
|
<actions>
|
<name>Account_Salesdepartment</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Account_State</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Creator_Job_Catetory</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>On-Call状态</fullName>
|
<actions>
|
<name>On_Call_Update_FinalStatus</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>On_Call__c.Status_c__c</field>
|
<operation>equals</operation>
|
<value>完毕</value>
|
</criteriaItems>
|
<description>On-Call状态修改到完毕。ON-Call跟进结果自动变成到On-CALL跟进完毕</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>On-Call状态换到</fullName>
|
<actions>
|
<name>On_Call_FinalStatus_return</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>On_Call__c.Status_c__c</field>
|
<operation>equals</operation>
|
<value>跟进中</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
</Workflow>
|