<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>QuoteConfirmMail</fullName>
|
<ccEmails>si_yingye@olympus.com.cn</ccEmails>
|
<description>报价确认后发送的邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Majordomo_Sell__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Manager_Sell__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Minister_Sell__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>OpporsAssistance__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Opportunity_sub_owner__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/QuoteConfirmEmailTemplate</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>UpdateQuoteCreatedDate</fullName>
|
<field>Quote_CreatedDate__c</field>
|
<formula>today()</formula>
|
<name>报价作成日更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateQuoteDecisionDate</fullName>
|
<field>Quote_Decision_Date__c</field>
|
<formula>today()</formula>
|
<name>报价决定日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>报价作成时</fullName>
|
<actions>
|
<name>UpdateQuoteCreatedDate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Quote.Name</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<description>在询价作成时,动。</description>
|
<triggerType>onCreateOnly</triggerType>
|
</rules>
|
<rules>
|
<fullName>报价决定时</fullName>
|
<actions>
|
<name>UpdateQuoteDecisionDate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>false</active>
|
<criteriaItems>
|
<field>Quote.Quote_Decision__c</field>
|
<operation>equals</operation>
|
<value>√</value>
|
</criteriaItems>
|
<description>在报价决定时,动。 <== 動かないですよ by katsu 20141203</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>报价确认邮件</fullName>
|
<actions>
|
<name>QuoteConfirmMail</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>Not(isNull(Queto_Confirm_Date__c))&&
|
isNull(PRIORVALUE(Queto_Confirm_Date__c ))</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|