<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>SubAuthorizedApprovalOrNotEmailAlert</fullName>
|
<description>转授权申请批准通过邮件提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<recipient>ling_zhu@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>SubAuthorized/SubAuthorizedApprovalDone</template>
|
</alerts>
|
<alerts>
|
<fullName>SubAuthorizedApprovalProcessEmailAlert</fullName>
|
<description>转授权申请邮件提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<recipient>ling_zhu@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<senderType>DefaultWorkflowUser</senderType>
|
<template>SubAuthorized/SubAuthorizedApproval</template>
|
</alerts>
|
<alerts>
|
<fullName>SubAuthorizedApprovaleeEmailAlert</fullName>
|
<description>转授权申请批准通过邮件提醒授权人</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Authorizee__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Authorizer__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>emailForwardPerson__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>DefaultWorkflowUser</senderType>
|
<template>SubAuthorized/SubAuthorizeeApprovalDone</template>
|
</alerts>
|
<alerts>
|
<fullName>SubAuthorizedEndEmailAlert</fullName>
|
<description>转授权申请结束邮件提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<recipient>ling_zhu@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>SubAuthorized/SubAuthorizedEndTemplate</template>
|
</alerts>
|
<alerts>
|
<fullName>SubAuthorizedNotApprovalEmailAlert</fullName>
|
<description>转授权申请驳回邮件提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<recipient>ling_zhu@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<senderType>DefaultWorkflowUser</senderType>
|
<template>SubAuthorized/SubAuthorizedNotApproval</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>ActionSubAuthorizedStatusApprovalUpdate</fullName>
|
<field>Status__c</field>
|
<literalValue>已批准</literalValue>
|
<name>设定-状态修改到批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>ActionSubAuthorizedStatusUpdate</fullName>
|
<field>Status__c</field>
|
<literalValue>申请中</literalValue>
|
<name>设定-状态修改到申请中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>ActionSubAuthorizedStatusnApprovalUpdate</fullName>
|
<field>Status__c</field>
|
<literalValue>草案中</literalValue>
|
<name>设定-状态修改到草案中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>setUpSubAuthorizedName</fullName>
|
<field>Name</field>
|
<formula>Authorizer__r.Alias + '于' + Text(AuthorizedStartDate__c) + '开始'+ Text(AuthorizedEndDate__c) +'结束的转授权申请'</formula>
|
<name>setUpSubAuthorizedName</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>转授权功能名自动生成</fullName>
|
<actions>
|
<name>setUpSubAuthorizedName</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>转授权结束邮件提醒</fullName>
|
<actions>
|
<name>SubAuthorizedEndEmailAlert</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED(IsAuthorize__c) && IsAuthorize__c = false && PRIORVALUE(IsAuthorize__c ) = true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|