<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>Cancel_report_deline</fullName>
|
<description>询价取消申请驳回通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Manager_sales__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Sales_assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/Cancel_report_decline</template>
|
</alerts>
|
<alerts>
|
<fullName>Cancel_report_share</fullName>
|
<description>询价取消审批共享给助理</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Sales_assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/Cancel_report</template>
|
</alerts>
|
<alerts>
|
<fullName>Cancel_request_approved</fullName>
|
<description>取消申请批准</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Manager_sales__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Sales_assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/Cancel_report_approval</template>
|
</alerts>
|
<alerts>
|
<fullName>Lost_report_deline</fullName>
|
<description>询价失单申请驳回通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Manager_sales__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Sales_assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/Lost_report_decline</template>
|
</alerts>
|
<alerts>
|
<fullName>Lost_report_share</fullName>
|
<description>询价失单审批共享给助理</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Sales_assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/Lost_report</template>
|
</alerts>
|
<alerts>
|
<fullName>Lost_request_approved</fullName>
|
<description>失单申请批准</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Manager_sales__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Sales_assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/Lost_report_approval</template>
|
</alerts>
|
<alerts>
|
<fullName>partLost_report_deline</fullName>
|
<description>询价部分失单申请驳回通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Manager_sales__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Sales_assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/partLost_report_decline</template>
|
</alerts>
|
<alerts>
|
<fullName>partLost_report_share</fullName>
|
<description>询价部分失单审批共享给助理</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Sales_assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/Lostpart_report</template>
|
</alerts>
|
<alerts>
|
<fullName>partLost_request_approved</fullName>
|
<description>部分失单申请批准</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Manager_sales__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Sales_assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Prospect/partLost_report_approval</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>Change_approved_date</fullName>
|
<field>Approved_Day__c</field>
|
<formula>today()</formula>
|
<name>更新 批准日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Lost_Approved</fullName>
|
<field>StageName</field>
|
<literalValue>敗戦</literalValue>
|
<name>Lost Approved</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
<targetObject>Opportunity__c</targetObject>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>REChange_approved_date</fullName>
|
<field>ModifyAfterApproval_ApprovedDay__c</field>
|
<formula>today()</formula>
|
<name>更新 再修改批准日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>REinput_submit_date</fullName>
|
<field>ModifyAfterApproval_SubmitDay__c</field>
|
<formula>today()</formula>
|
<name>输入-再修改提交日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>RErequest_date_change_to_blank</fullName>
|
<field>ModifyAfterApproval_SubmitDay__c</field>
|
<name>再修改提交日为空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_Opportunity_Stage_Cancel</fullName>
|
<field>StageName</field>
|
<literalValue>削除</literalValue>
|
<name>Set Opportunity.Stage Cancel</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
<targetObject>Opportunity__c</targetObject>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_status_to_draft</fullName>
|
<field>Report_Status__c</field>
|
<literalValue>草案</literalValue>
|
<name>状态修改到草案中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Status_change_to_approval</fullName>
|
<description>状态更新到已批准</description>
|
<field>Report_Status__c</field>
|
<literalValue>批准</literalValue>
|
<name>状态更新到已批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Status_change_to_submit</fullName>
|
<field>Report_Status__c</field>
|
<literalValue>申请中</literalValue>
|
<name>状态-修改到提交</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_ClickCloseDate</fullName>
|
<field>Click_Close_Date__c</field>
|
<formula>Today()</formula>
|
<name>询价-设定询价结束日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
<targetObject>Opportunity__c</targetObject>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Final_Contract_Proceeded_Date_1</fullName>
|
<field>Final_Contract_Proceeded_Date__c</field>
|
<formula>Today()</formula>
|
<name>SFDC最终处理日更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
<targetObject>Opportunity__c</targetObject>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Lost_Opportunity_Date</fullName>
|
<field>Lost_Opportunity_Date__c</field>
|
<formula>today()</formula>
|
<name>设定 失单取消日更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
<targetObject>Opportunity__c</targetObject>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>WF_Test</fullName>
|
<field>WF_Test__c</field>
|
<formula>Text(Now())</formula>
|
<name>WF_Test</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>input_submit_date</fullName>
|
<field>Submit_Day__c</field>
|
<formula>today()</formula>
|
<name>输入-提交日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>request_date_change_to_blank</fullName>
|
<field>Submit_Day__c</field>
|
<name>申请日修改到空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>Cancel Approved</fullName>
|
<actions>
|
<name>Set_Opportunity_Stage_Cancel</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_ClickCloseDate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Final_Contract_Proceeded_Date_1</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Lost_Opportunity_Date</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>WF_Test</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>false</active>
|
<criteriaItems>
|
<field>Lost_cancel_report__c.Report_Status__c</field>
|
<operation>equals</operation>
|
<value>批准</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Lost_cancel_report__c.RecordTypeId</field>
|
<operation>equals</operation>
|
<value>询价取消报告</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Opportunity.StageName</field>
|
<operation>equals</operation>
|
<value>引合</value>
|
</criteriaItems>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>Lost Approved</fullName>
|
<actions>
|
<name>Lost_Approved</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_ClickCloseDate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Final_Contract_Proceeded_Date_1</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Update_Lost_Opportunity_Date</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>false</active>
|
<criteriaItems>
|
<field>Lost_cancel_report__c.Report_Status__c</field>
|
<operation>equals</operation>
|
<value>批准,提交</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Lost_cancel_report__c.RecordTypeId</field>
|
<operation>equals</operation>
|
<value>询价失单报告</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Opportunity.StageName</field>
|
<operation>equals</operation>
|
<value>引合</value>
|
</criteriaItems>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|