<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>NewAgencyOpportunityEmail</fullName>
|
<description>特约店新建经销商询价后,对应医院科室的OCSM营业担当收到提醒邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<field>OCSM_Owner__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/NewAgencyOpportunityEmail</template>
|
</alerts>
|
<alerts>
|
<fullName>NewNewOpportunity_Agency_Reject_email</fullName>
|
<ccEmails>liyanf@sohobb.jp</ccEmails>
|
<ccEmails>maoyudi@sohobb.jp</ccEmails>
|
<ccEmails>it_sfdc@olympus.com.cn</ccEmails>
|
<description>共享给经销商-驳回邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Agency_Opportunity/ShareNotApproved</template>
|
</alerts>
|
<alerts>
|
<fullName>NewOpportunity_Agency_Approve_email</fullName>
|
<description>共享给经销商-批准邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Agency_Opportunity/ShareApproved</template>
|
</alerts>
|
<alerts>
|
<fullName>NewOpportunity_Agency_apply_email</fullName>
|
<ccEmails>liyanf@sohobb.jp</ccEmails>
|
<ccEmails>maoyudi@sohobb.jp</ccEmails>
|
<description>共享给经销商-通知邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Sales_Manager__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Agency_Opportunity/ShareInform</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>Agency_Opportunity_No_Setting</fullName>
|
<field>Agency_Opportunity_No__c</field>
|
<formula>IF(Isnull(Created_Day__c) == False,
|
if((YEAR(Created_Day__c)<=2021 && MONTH(Created_Day__c)<=3),
|
TEXT(YEAR(Created_Day__c)-1868)+'P_',
|
if((YEAR(Created_Day__c)<2021 && MONTH(Created_Day__c)>3),TEXT(YEAR(Created_Day__c)-1867)+'P_',
|
if((YEAR(Created_Day__c)>=2021&&MONTH(Created_Day__c)>3),'FY'&TEXT(YEAR(Created_Day__c)+1)+'-',
|
'FY'&TEXT(YEAR(Created_Day__c))+'-'
|
)
|
)
|
),""
|
)+ Right(LPAD(AutoNumber__c, 8, '0'), 8)</formula>
|
<name>经销商询价编码设置</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Deleted_Reason_Date_Setting</fullName>
|
<field>Deleted_Reason_Date__c</field>
|
<formula>Today()</formula>
|
<name>取消日期设定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Lost_Opportunity_Date_Setting</fullName>
|
<field>Lost_Opportunity_Date__c</field>
|
<formula>Today()</formula>
|
<name>失单日期设定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>NewOpportunity_Agenc_Apply_Status_submit</fullName>
|
<field>NewOpportunity_Agency_Apply_Status__c</field>
|
<literalValue>申请中</literalValue>
|
<name>共享审批状态-申请中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>NewOpportunity_Agency_Apply_Status_draft</fullName>
|
<field>NewOpportunity_Agency_Apply_Status__c</field>
|
<literalValue>草案中</literalValue>
|
<name>共享审批状态-草案中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>NewOpportunity_Agency_Apply_Status_pass</fullName>
|
<field>NewOpportunity_Agency_Apply_Status__c</field>
|
<literalValue>批准</literalValue>
|
<name>共享审批状态-批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>NewOpportunity_Agency_Apply_Status_rejec</fullName>
|
<field>NewOpportunity_Agency_Apply_Status__c</field>
|
<literalValue>不批准</literalValue>
|
<name>共享审批状态-不批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>NewOpportunity_Agency_Apply_Time_update</fullName>
|
<field>NewOpportunity_Agency_Apply_time__c</field>
|
<formula>NOW()</formula>
|
<name>共享申请时间-更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>NewOpportunity_Agency_Apply_ptime_clear</fullName>
|
<field>NewOpportunity_Agency_Apply_passtime__c</field>
|
<name>共享审批通过时间-清空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>NewOpportunity_Agency_Apply_ptime_update</fullName>
|
<field>NewOpportunity_Agency_Apply_passtime__c</field>
|
<formula>NOW()</formula>
|
<name>共享审批通过时间-更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateSF</fullName>
|
<field>Test_SF_support__c</field>
|
<formula>hosName_opp__c</formula>
|
<name>更新医院名</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>公式拷文本%28医院名%29</fullName>
|
<actions>
|
<name>UpdateSF</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>公式拷文本%28社区搜索用%29</fullName>
|
<actions>
|
<name>UpdateSF</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED(Account_Opp__c)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>取消日期</fullName>
|
<actions>
|
<name>Deleted_Reason_Date_Setting</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Agency_Opportunity__c.StageName__c</field>
|
<operation>equals</operation>
|
<value>取消</value>
|
</criteriaItems>
|
<description>当状态为‘取消’,取消日期设置成今天</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>失单日期</fullName>
|
<actions>
|
<name>Lost_Opportunity_Date_Setting</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Agency_Opportunity__c.StageName__c</field>
|
<operation>equals</operation>
|
<value>失单</value>
|
</criteriaItems>
|
<description>当状态为‘失单’,失单日期设置成今天</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>新建经销商询价后邮件提醒营业担当</fullName>
|
<actions>
|
<name>NewAgencyOpportunityEmail</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<description>新建经销商询价后邮件提醒营业担当</description>
|
<formula>true</formula>
|
<triggerType>onCreateOnly</triggerType>
|
</rules>
|
<rules>
|
<fullName>经销商询价编码设值</fullName>
|
<actions>
|
<name>Agency_Opportunity_No_Setting</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Agency_Opportunity__c.AutoNumber__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
</Workflow>
|