GWY
2022-05-21 a3460549533111815e7f73d6cef601a58031525d
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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <fieldUpdates>
        <fullName>ProductCodeKEY_Model</fullName>
        <field>ProductCodeKEY__c</field>
        <formula>ProductCode+&apos;(&apos;+TEXT(Family)+&apos;)&apos;</formula>
        <name>产品编码(KEY)赋值(产品型号)</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ProductCodeKEY_NotModel</fullName>
        <field>ProductCodeKEY__c</field>
        <formula>ProductCode</formula>
        <name>产品编码(KEY)赋值(非产品型号)</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <rules>
        <fullName>产品编码%EF%BC%88KEY%EF%BC%89赋值%28产品型号%29</fullName>
        <actions>
            <name>ProductCodeKEY_Model</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Product2.ProductModels__c</field>
            <operation>equals</operation>
            <value>真</value>
        </criteriaItems>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>产品编码%EF%BC%88KEY%EF%BC%89赋值%28非产品型号%29</fullName>
        <actions>
            <name>ProductCodeKEY_NotModel</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Product2.ProductModels__c</field>
            <operation>equals</operation>
            <value>假</value>
        </criteriaItems>
        <triggerType>onCreateOnly</triggerType>
    </rules>
</Workflow>