<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>Accompany_report_approval_annouce</fullName>
|
<description>同行报告书批准通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Report/Accompany_report_approval</template>
|
</alerts>
|
<alerts>
|
<fullName>Accompany_report_decline</fullName>
|
<description>同行报告书驳回通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Report/Accompany_report_decline</template>
|
</alerts>
|
<alerts>
|
<fullName>Accompany_report_share</fullName>
|
<description>同行报告书提交共享</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Superior__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>TongkuoZongjian__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Zongjian__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Report/Accompanying_Report</template>
|
</alerts>
|
<alerts>
|
<fullName>Visit_With</fullName>
|
<description>同行结果反馈</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Subordinate__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Report/Accompany_report_feedbacl</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>Accompany_repot_submit_day</fullName>
|
<field>Submit_report_day__c</field>
|
<formula>today()</formula>
|
<name>报告书提交日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Report_Reporter_Job_Category_Set</fullName>
|
<field>Reporter_Job_Category__c</field>
|
<formula>Daily_Report__r.Reporter_Job_Category__c</formula>
|
<name>「報告者-職種」設定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Report_Reporter_Salesdepartment_Set</fullName>
|
<field>Reporter_Salesdepartment__c</field>
|
<formula>Daily_Report__r.Reporter_Salesdepartment__c</formula>
|
<name>「報告書-本部」設定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Report_Reporter_State_Set</fullName>
|
<field>Reporter_State__c</field>
|
<formula>Daily_Report__r.Reporter_State__c</formula>
|
<name>「報告者-省」設定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Status_approval</fullName>
|
<field>Status__c</field>
|
<literalValue>批准</literalValue>
|
<name>状态改到批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Status_draft</fullName>
|
<field>Status__c</field>
|
<literalValue>草案中</literalValue>
|
<name>状态-更新到草案中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Status_submit</fullName>
|
<field>Status__c</field>
|
<literalValue>申请中</literalValue>
|
<name>状态-更新到申请中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Submit_date_blank</fullName>
|
<field>Submit_report_day__c</field>
|
<name>提交日修改到空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_approved_date</fullName>
|
<field>Approved_date__c</field>
|
<formula>today()</formula>
|
<name>更新 批准日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>同行报告书提交日</fullName>
|
<actions>
|
<name>Accompany_repot_submit_day</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Visit_Report__c.Status__c</field>
|
<operation>equals</operation>
|
<value>申请中</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>同行报告书毎回実行公式变成到文本</fullName>
|
<actions>
|
<name>Report_Reporter_Job_Category_Set</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Report_Reporter_Salesdepartment_Set</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Report_Reporter_State_Set</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>True</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|