<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>LostReportReject</fullName>
|
<description>失单报告驳回时邮件通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Lost_Report_Folder/Lost_Report_rejection_Template</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>Inquiry_renewal</fullName>
|
<field>Renewal_Status__c</field>
|
<literalValue>已完成</literalValue>
|
<name>InquiryRenewalState</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
<targetObject>Maintenance_Contract__c</targetObject>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Return</fullName>
|
<field>Status__c</field>
|
<literalValue>草案中</literalValue>
|
<name>Return</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>To_Approved</fullName>
|
<field>Status__c</field>
|
<literalValue>批准</literalValue>
|
<name>To Approved</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>To_Rejected</fullName>
|
<field>Status__c</field>
|
<literalValue>驳回</literalValue>
|
<name>To Rejected</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>InquiryRenewal</fullName>
|
<actions>
|
<name>Inquiry_renewal</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>IF( Text(Status__c) == '批准',true,false)</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
</Workflow>
|