<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>ActionEmail</fullName>
|
<ccEmails>ling_zhu@olympus.com.cn</ccEmails>
|
<ccEmails>shuo_wang@olympus.com.cn</ccEmails>
|
<description>SWAG-BD9A76 【委托】 日报状态为批准时,设置邮件提醒功能</description>
|
<protected>false</protected>
|
<recipients>
|
<field>HospitalMainResponsibility__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>MainResponsibilityDirector__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>MainResponsibilityManager__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>MainResponsibilityMinister__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>unfiled$public/EmailTemplate4</template>
|
</alerts>
|
<alerts>
|
<fullName>Buchang_feedback</fullName>
|
<description>总监/部长反馈通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Activity_feedback/Activity_feedback_zongjian</template>
|
</alerts>
|
<alerts>
|
<fullName>EventCSubmitedMail</fullName>
|
<description>日报变成申请中(医院),发Email</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Boss_Mail__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<field>Sub_Boss_Mail__c</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/EventCSubmitedMail</template>
|
</alerts>
|
<alerts>
|
<fullName>Find_Imitations_Email</fullName>
|
<ccEmails>hiroki_hotta@olympus.com.cn,yoshihiko_terabori@olympus.com.cn</ccEmails>
|
<description>日报-发现仿制品的提醒邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Imitation_Mail__c</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Activity_feedback/CloneProWarn</template>
|
</alerts>
|
<alerts>
|
<fullName>Manager_feedback_comment</fullName>
|
<description>经理反馈</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Activity_feedback/Activity_feedback</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>ActionFieldUpdate</fullName>
|
<field>NotSendEmail__c</field>
|
<literalValue>0</literalValue>
|
<name>更新是否未发送邮件字段</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SetManagerFirstConfirmTime</fullName>
|
<field>Manager_Firstcheck_Time__c</field>
|
<formula>Manager_Check_Time__c</formula>
|
<name>经理初次确认时间设定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SetMinisterFirstConfirmTime</fullName>
|
<field>Minister_Firstcheck_Time__c</field>
|
<formula>Minister_Check_Time__c</formula>
|
<name>部长总监初次确认时间设定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Reporeter_Dept</fullName>
|
<field>Reporter_Dept__c</field>
|
<formula>text(Daily_Report__r.Reporter__r.Dept__c)</formula>
|
<name>報告者・本部(选项)更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Reporeter_Province</fullName>
|
<field>Reporter_Province__c</field>
|
<formula>text(Daily_Report__r.Reporter__r.Province__c)</formula>
|
<name>報告者・省更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Reporter_Job_Category</fullName>
|
<field>Reporter_Job_Category__c</field>
|
<formula>text(Daily_Report__r.Reporter__r.Job_Category__c)</formula>
|
<name>報告者・職種更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Reporter_Post</fullName>
|
<field>Reporter_Post__c</field>
|
<formula>text(Daily_Report__r.Reporter__r.Post__c)</formula>
|
<name>報告者・役職更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Reporter_Pregnant_Rest</fullName>
|
<field>Reporter_Pregnant_Rest__c</field>
|
<formula>if(Daily_Report__r.Reporter__r.Pregnant_Rest__c = true, 1, 0)</formula>
|
<name>報告者・是否产假更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Reporter_Product_specialist_incha</fullName>
|
<field>Reporter_Product_specialist_incharge_pro__c</field>
|
<formula>text(Daily_Report__r.Reporter__r.Product_specialist_incharge_product__c)</formula>
|
<name>報告者・推进员工负责产品</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Reporter_Salesdepartment</fullName>
|
<field>Reporter_Salesdepartment__c</field>
|
<formula>Daily_Report__r.Reporter__r.Salesdepartment__c</formula>
|
<name>報告者・本部更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Reporter_Test_staff</fullName>
|
<field>Reporter_Test_staff__c</field>
|
<formula>if ( Daily_Report__r.Reporter__r.Test_staff__c = true, 1, 0)</formula>
|
<name>報告者・开发/测试员工更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Reporter_Work_Location</fullName>
|
<field>Reporter_Work_Location__c</field>
|
<formula>text(Daily_Report__r.Reporter__r.Work_Location__c)</formula>
|
<name>報告者・勤務地更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Reporter_isActive</fullName>
|
<field>Reporter_isActive__c</field>
|
<formula>if ( Daily_Report__r.Reporter__r.IsActive = true, 1, 0)</formula>
|
<name>報告者・有効無効更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Responsible_for_Products_Concurre</fullName>
|
<field>Responsible_for_Products_Concurrently__c</field>
|
<formula>TEXT(Daily_Report__r.Reporter__r.Responsible_for_Products_Concurrently__c)</formula>
|
<name>报告者・推进员工负责产品(兼)</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>set_Imitation_Mail</fullName>
|
<field>Imitation_Mail__c</field>
|
<formula>"OCN_IP@olympus.com.cn"</formula>
|
<name>设定-仿制品邮箱</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>七个营业部门以外的部门填写日报开启邮件提醒功能</fullName>
|
<actions>
|
<name>ActionEmail</name>
|
<type>Alert</type>
|
</actions>
|
<actions>
|
<name>ActionFieldUpdate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<booleanFilter>1 AND 2 AND 3 AND 4 AND 5 AND 6 AND 7 AND 8 AND 9 AND (10 OR 11 OR 12)</booleanFilter>
|
<criteriaItems>
|
<field>Event__c.Activity_Type2__c</field>
|
<operation>equals</operation>
|
<value>病院</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Event__c.Reporter_Salesdepartment__c</field>
|
<operation>notContain</operation>
|
<value>华北</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Event__c.Reporter_Salesdepartment__c</field>
|
<operation>notContain</operation>
|
<value>东北</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Event__c.Reporter_Salesdepartment__c</field>
|
<operation>notContain</operation>
|
<value>西北</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Event__c.Reporter_Salesdepartment__c</field>
|
<operation>notContain</operation>
|
<value>西南</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Event__c.Reporter_Salesdepartment__c</field>
|
<operation>notContain</operation>
|
<value>华东</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Event__c.Reporter_Salesdepartment__c</field>
|
<operation>notContain</operation>
|
<value>华南</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Event__c.Reporter_Salesdepartment__c</field>
|
<operation>notContain</operation>
|
<value>能量</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Event__c.NotSendEmail__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Daily_Report__c.Status__c</field>
|
<operation>equals</operation>
|
<value>承認</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Event__c.Minister__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Event__c.Manager__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<description>SWAG-BD9A76 【委托】 日报状态为批准时,设置邮件提醒功能</description>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>总监%2F部长反馈邮件通知</fullName>
|
<actions>
|
<name>Buchang_feedback</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED(Minister_Comment__c)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>报告一览-发现模仿嫌疑品</fullName>
|
<actions>
|
<name>Find_Imitations_Email</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<description>【发现模仿嫌疑品】时候勾选flag 邮件通知
|
/*Status_With_Check__c='申请中' && (Find_Imitations_Flag__c == true) && NOT(ISBLANK(Imitation_Mail__c))*/</description>
|
<formula>(Find_Imitations_Flag__c == true)&& NOT(ISBLANK(Imitation_Mail__c))&&
|
Mail_Send_Btn__c!=null&&
|
PRIORVALUE(Mail_Send_Btn__c)!='1'&&
|
PRIORVALUE(Mail_Send_Btn__c)!='0'</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>报告一览更新字段</fullName>
|
<actions>
|
<name>Update_Responsible_for_Products_Concurre</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>日报变成申请中%EF%BC%8C发Email</fullName>
|
<active>false</active>
|
<formula>/* 就当点了按钮 */
|
ISCHANGED( Mail_Send_Btn__c ) && ISPICKVAL(Activity_Type2__c, "病院")</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>活动Cの登録更新時いつでも</fullName>
|
<actions>
|
<name>Update_Reporeter_Dept</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Reporeter_Province</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Reporter_Job_Category</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Reporter_Post</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Reporter_Pregnant_Rest</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Reporter_Product_specialist_incha</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Reporter_Salesdepartment</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Reporter_Test_staff</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Reporter_Work_Location</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Reporter_isActive</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>经理初次确认时间设定</fullName>
|
<actions>
|
<name>SetManagerFirstConfirmTime</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>AND( Manager__c = true, ISBLANK( Manager_Firstcheck_Time__c ) )</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>经理反馈邮件通知</fullName>
|
<actions>
|
<name>Manager_feedback_comment</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED(Manager_Comment__c)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>设定-仿制品邮箱</fullName>
|
<actions>
|
<name>set_Imitation_Mail</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>/*ISCHANGED(Find_Imitations_Flag__c)*/</description>
|
<formula>(ISCHANGED(Find_Imitations_Flag__c)&&Find_Imitations_Flag__c==true)||(isnew()&&Find_Imitations_Flag__c==true)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>部长总监初次确认时间设定</fullName>
|
<actions>
|
<name>SetMinisterFirstConfirmTime</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>AND(Minister__c = true, ISBLANK( Minister_Firstcheck_Time__c ) )</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|