<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>NMPA_Change_to_True</fullName>
|
<description>NMPA状态(文本)更新为有效的提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<recipient>_xurong_zhang@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<recipients>
|
<recipient>jing_zhang@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<recipients>
|
<recipient>liu_yang@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<recipients>
|
<recipient>sijia_chen@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Product2_Folder/SFDAStatus_Changed_EmailTemplate</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>EndDateNull</fullName>
|
<field>EndSaleDate__c</field>
|
<name>物料停产日清空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>EndDateUpdate</fullName>
|
<field>EndSaleDate__c</field>
|
<formula>today()</formula>
|
<name>物料停产日设定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Key_Product</fullName>
|
<field>Key_Product_Txt__c</field>
|
<formula>Key_product_147P__c</formula>
|
<name>重点产品区分文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Last_active_update_staff</fullName>
|
<field>Active_last_check_person__c</field>
|
<formula>$User.LastName &" "& $User.FirstName</formula>
|
<name>设定-启用信息最后更新者</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>ProductCode_Ext_Set</fullName>
|
<field>ProductCode_Ext__c</field>
|
<formula>ProductCode</formula>
|
<name>商品コード(外部ID) セット</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>ProductInvalidDateClear</fullName>
|
<field>Invalid_Date__c</field>
|
<name>产品无效日清空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SetProductInvalidDate</fullName>
|
<field>Invalid_Date__c</field>
|
<formula>TODAY()</formula>
|
<name>产品无效日设定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Tier1_CategoryText</fullName>
|
<field>Tier1_Category__c</field>
|
<formula>Tier1_CategoryF__c</formula>
|
<name>Tier1文本更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Tier3_text</fullName>
|
<field>BSS_Code_Tier3_Text__c</field>
|
<formula>BSS_Code_Tier3__c</formula>
|
<name>Tier3文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateCategory5ByRecordType</fullName>
|
<field>Category5__c</field>
|
<formula>"竞争对手"</formula>
|
<name>更具记录类型更新第五分类</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateImporantProduct</fullName>
|
<description>更新是否重点产品对象</description>
|
<field>Important_product__c</field>
|
<literalValue>1</literalValue>
|
<name>更新是否重点产品对象</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateImporantProductNull</fullName>
|
<field>Important_product__c</field>
|
<literalValue>0</literalValue>
|
<name>更新是否重点产品对象Null</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>X12_BSS_text</fullName>
|
<field>BSS_2_text__c</field>
|
<formula>X12_BSS__c</formula>
|
<name>12分类(BSS)文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>BSS文本化</fullName>
|
<actions>
|
<name>Key_Product</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Tier1_CategoryText</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Tier3_text</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>X12_BSS_text</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>NMPA状态更新为有效%EF%BC%8C发送系统邮件提醒</fullName>
|
<actions>
|
<name>NMPA_Change_to_True</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<booleanFilter>(1 OR 2 OR 3) AND 4 AND 5</booleanFilter>
|
<criteriaItems>
|
<field>Product2.Family</field>
|
<operation>equals</operation>
|
<value>GI</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Product2.Family</field>
|
<operation>equals</operation>
|
<value>SP</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Product2.Family</field>
|
<operation>equals</operation>
|
<value>ENG</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Product2.Category2__c</field>
|
<operation>notEqual</operation>
|
<value>其他</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Product2.SFDA_Status__c</field>
|
<operation>equals</operation>
|
<value>有効</value>
|
</criteriaItems>
|
<description>LJPH-C679PR</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>UpdateTheCategory5AccordingToRecordType</fullName>
|
<actions>
|
<name>UpdateCategory5ByRecordType</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<booleanFilter>1 OR 2</booleanFilter>
|
<criteriaItems>
|
<field>Product2.RecordTypeId</field>
|
<operation>equals</operation>
|
<value>竞品-主机</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Product2.RecordTypeId</field>
|
<operation>equals</operation>
|
<value>竞品-耗材</value>
|
</criteriaItems>
|
<description>创建记录类型为竞品的产品时,设置第5分类为"竞争对手"</description>
|
<triggerType>onCreateOnly</triggerType>
|
</rules>
|
<rules>
|
<fullName>产品无效日清空</fullName>
|
<actions>
|
<name>ProductInvalidDateClear</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED(SFDA_Status__c) && (TEXT(SFDA_Status__c) = '有効' || TEXT(SFDA_Status__c) = '失効(期限内生産済在庫対応)' || TEXT(SFDA_Status__c) = '有効(再申請中)' || TEXT(SFDA_Status__c) = '不要')</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>产品无效日设定</fullName>
|
<actions>
|
<name>SetProductInvalidDate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED(SFDA_Status__c) && (TEXT(SFDA_Status__c) = '停止' || TEXT(SFDA_Status__c) = '失効(再申請中)' || TEXT(SFDA_Status__c) = '失効(申請無)' )</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>产品物料停产日清空</fullName>
|
<actions>
|
<name>EndDateNull</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Product2.Product_Status__c</field>
|
<operation>notEqual</operation>
|
<value>停止销售,停产</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>产品物料停产日设定</fullName>
|
<actions>
|
<name>EndDateUpdate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Product2.Product_Status__c</field>
|
<operation>equals</operation>
|
<value>停止销售,停产</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>商品 外部ID セット</fullName>
|
<actions>
|
<name>ProductCode_Ext_Set</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>X12_BSS_text</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>True</formula>
|
<triggerType>onCreateOnly</triggerType>
|
</rules>
|
<rules>
|
<fullName>设定-保留最后启用者</fullName>
|
<actions>
|
<name>Last_active_update_staff</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED(IsActive)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>重点产品对象更新</fullName>
|
<actions>
|
<name>UpdateImporantProduct</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>!ISBLANK(Key_product_147P__c)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>重点产品对象清空</fullName>
|
<actions>
|
<name>UpdateImporantProductNull</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>ISBLANK(Key_product_147P__c)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|