binxie
2024-01-20 2ff0f0a7ab276c3466d9e06e14222db802194efc
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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>Inspection_NG_Email</fullName>
        <ccEmails>sfdc_lvxueyan@olympus.com.cn</ccEmails>
        <description>明细验收NG邮件</description>
        <protected>false</protected>
        <recipients>
            <field>Loaner_centre_mail_address__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Asset_Receiving/Inspection_NG_Email</template>
    </alerts>
    <rules>
        <fullName>明细验收NG邮件</fullName>
        <actions>
            <name>Inspection_NG_Email</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>ReceivingNoteDetail__c.After_Inspection_time__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>ReceivingNoteDetail__c.Inspection_result_after__c</field>
            <operation>equals</operation>
            <value>NG</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
</Workflow>