<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>TSRepairPass</fullName>
|
<ccEmails>Xin_Prectech@olympus.com.cn</ccEmails>
|
<description>TS日报批准邮件提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/TSRepairPass</template>
|
</alerts>
|
<alerts>
|
<fullName>TSRepairRejected</fullName>
|
<ccEmails>Xin_Prectech@olympus.com.cn</ccEmails>
|
<description>TS日报驳回邮件提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/TSRepairRejected</template>
|
</alerts>
|
<alerts>
|
<fullName>TSRepairSubmit</fullName>
|
<ccEmails>Xin_Prectech@olympus.com.cn</ccEmails>
|
<description>TS日报提交邮件提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<field>TSRepairSuperior__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/TSRepairSubmit</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>repair_auto</fullName>
|
<field>Name</field>
|
<formula>SUBSTITUTE( TEXT( TSReportDate__c ) , '-', '') + autonumber__c</formula>
|
<name>日报自动命名</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
</fieldUpdates>
|
<rules>
|
<fullName>TS日报-名称生成</fullName>
|
<actions>
|
<name>repair_auto</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>TS日报的报告日期与自动编码拼接而成</description>
|
<formula>true</formula>
|
<triggerType>onCreateOnly</triggerType>
|
</rules>
|
<rules>
|
<fullName>TS日报批准邮件提醒</fullName>
|
<actions>
|
<name>TSRepairPass</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>TS_Repair__c.TSReportStatus__c</field>
|
<operation>equals</operation>
|
<value>确认</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>TS日报提交邮件提醒</fullName>
|
<actions>
|
<name>TSRepairSubmit</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>TS_Repair__c.TSReportStatus__c</field>
|
<operation>equals</operation>
|
<value>申请中</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>TS日报驳回邮件提醒</fullName>
|
<actions>
|
<name>TSRepairRejected</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>TS_Repair__c.TSReportStatus__c</field>
|
<operation>equals</operation>
|
<value>驳回</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
</Workflow>
|