binxie
2024-01-20 1d91be0be5220ce19ee64de5a5c9a8237b1c15b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?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) == &apos;批准&apos;,true,false)</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
</Workflow>