<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>CreateSIMail</fullName>
|
<ccEmails>IT_SFDC@olympus.com.cn</ccEmails>
|
<description>新建需求表邮件提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<type>creator</type>
|
</recipients>
|
<recipients>
|
<recipient>tongyun_pan@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<recipients>
|
<field>Opportunity_sub_owner__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/SI_CreateMailModel</template>
|
</alerts>
|
<alerts>
|
<fullName>SICommonDeniedMail</fullName>
|
<ccEmails>si_yingye@olympus.com.cn</ccEmails>
|
<description>通行SI需求表审批-审批驳回邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Opportunity_sub_owner__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_Majordomo__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_Minister_Sell__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/SICommonDeniedMailModel</template>
|
</alerts>
|
<alerts>
|
<fullName>SICommonPassMail</fullName>
|
<ccEmails>si_yingye@olympus.com.cn</ccEmails>
|
<description>通行SI需求表审批-审批通过邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Opportunity_sub_owner__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_Majordomo__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_Minister_Sell__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/SIPassMailModel</template>
|
</alerts>
|
<alerts>
|
<fullName>SI_Abort_Send_Mail</fullName>
|
<ccEmails>SI_yingye@olympus.com.cn</ccEmails>
|
<description>SI需求表终止邮件提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<type>creator</type>
|
</recipients>
|
<recipients>
|
<recipient>tongyun_pan@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<recipients>
|
<field>Opportunity_sub_owner__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_Majordomo__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_Minister_Sell__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_SalesManager__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/SI_Abort_Mail_Model</template>
|
</alerts>
|
<alerts>
|
<fullName>SI_Common_Stream</fullName>
|
<ccEmails>si_yingye@olympus.com.cn</ccEmails>
|
<description>通行SI需求表审批流程</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Opportunity_sub_owner__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_Majordomo__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_Minister_Sell__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/SI_ISO_Submit_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>SI_Oppor_Submit_Mail</fullName>
|
<description>SI询价需求提交待审批邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>creator</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/SI_ISO_Submit_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>SI_SOD_Submit_Mail</fullName>
|
<ccEmails>si_yingye@olympus.com.cn</ccEmails>
|
<description>SI需求表提交申请</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Opportunity_sub_owner__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_SalesManager__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/SI_Submit_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>SI_SOD_Submited</fullName>
|
<ccEmails>si_yingye@olympus.com.cn</ccEmails>
|
<description>SI需求表已提交</description>
|
<protected>false</protected>
|
<recipients>
|
<type>creator</type>
|
</recipients>
|
<recipients>
|
<field>Opportunity_sub_owner__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_Majordomo__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_Minister_Sell__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>SI_SalesManager__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/SI_ISO_Submit_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>SI_Wait_For_Approval</fullName>
|
<description>SI询价提交待审批</description>
|
<protected>false</protected>
|
<recipients>
|
<type>creator</type>
|
</recipients>
|
<recipients>
|
<recipient>uat_02@uat.olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/SI_Oppor_Submit_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>approval_Aloud_Mail</fullName>
|
<ccEmails>si_yingye@olympus.com.cn</ccEmails>
|
<description>SI审批通过邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>creator</type>
|
</recipients>
|
<recipients>
|
<field>Opportunity_sub_owner__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/SI_Oppor_Stream_Mail</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>RequiredName</fullName>
|
<field>Name</field>
|
<formula>Opportunity_ID__r.Opportunity_No__c+'-'+ IF(Name_Index__c>9,Text(Name_Index__c),'0'+Text(Name_Index__c))</formula>
|
<name>创建需求名称</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SI_Approval_Set_Date</fullName>
|
<field>Approval_Date__c</field>
|
<formula>Today()</formula>
|
<name>SI批准添加日期</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SetApplyDate</fullName>
|
<field>Equipment_Confirm_Date__c</field>
|
<formula>today()</formula>
|
<name>设置申请日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SetStockConfrimDate</fullName>
|
<field>Stock_Comfirm_Date__c</field>
|
<formula>today()</formula>
|
<name>备货申请确认日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Submit_CallBack</fullName>
|
<field>Submint_TF__c</field>
|
<literalValue>0</literalValue>
|
<name>调回提交</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Submit_Date</fullName>
|
<field>Submit_Date__c</field>
|
<formula>Today()</formula>
|
<name>提交时间</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Submit_For_Confirm</fullName>
|
<field>Submint_TF__c</field>
|
<literalValue>1</literalValue>
|
<name>需求表提交</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Submit_Pass</fullName>
|
<field>Approval_Date__c</field>
|
<formula>today()</formula>
|
<name>审批通过</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Submit_Refuse</fullName>
|
<field>Submint_TF__c</field>
|
<literalValue>0</literalValue>
|
<name>驳回提交</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>reSetSubmitDate</fullName>
|
<field>Submit_Date__c</field>
|
<name>重置提交日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>SI_Abort_Mail</fullName>
|
<actions>
|
<name>SI_Abort_Send_Mail</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>Not(ISBLANK(Abort_SI_Reason__c))&&Not(ISNULL(Abort_SI_Reason__c))&&not(isNull( Abort_Date__c ))</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>SI询价提交待审批</fullName>
|
<actions>
|
<name>SI_Oppor_Submit_Mail</name>
|
<type>Alert</type>
|
</actions>
|
<active>false</active>
|
<criteriaItems>
|
<field>IS_Opportunity_Demand__c.Submint_TF__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>新建SI需求名</fullName>
|
<actions>
|
<name>CreateSIMail</name>
|
<type>Alert</type>
|
</actions>
|
<actions>
|
<name>RequiredName</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>isnew()</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|