<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fieldUpdates>
|
<fullName>Questionnaire_SurveyName</fullName>
|
<field>Name</field>
|
<formula>Text(Today())& AutoNumber__c</formula>
|
<name>Questionnaire_SurveyName</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_status_01</fullName>
|
<field>Questionnaire_Status__c</field>
|
<literalValue>已提交</literalValue>
|
<name>问卷状态更新-已提交</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_status_02</fullName>
|
<field>Questionnaire_Status__c</field>
|
<literalValue>已批准</literalValue>
|
<name>问卷状态更新-批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_status_03</fullName>
|
<field>Questionnaire_Status__c</field>
|
<literalValue>驳回</literalValue>
|
<name>订单状态更新-驳回</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_status_04</fullName>
|
<field>Questionnaire_Status__c</field>
|
<literalValue>草案中</literalValue>
|
<name>订单状态更新-草案中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>Questionnaire_Survey_insert</fullName>
|
<actions>
|
<name>Questionnaire_SurveyName</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<booleanFilter>(1 OR 2)</booleanFilter>
|
<criteriaItems>
|
<field>Questionnaire_Survey__c.Name</field>
|
<operation>equals</operation>
|
<value>*</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Questionnaire_Survey__c.Name</field>
|
<operation>equals</operation>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
</Workflow>
|