<?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+'('+TEXT(Family)+')'</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>
|