<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>ANI_DeliverGoods</fullName>
|
<description>ANI发货提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Director_email__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<recipient>ANI_loaner_manager</recipient>
|
<type>group</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/NDT_DeliverGoods_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>ANI_ReturnGoods</fullName>
|
<description>ANI_回寄物流提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<recipient>ANI_loaner_manager</recipient>
|
<type>group</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/NDT_ReturnGoods_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>ANI_loanerApp</fullName>
|
<description>ANI转借物流发货</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Director_email__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<recipient>ANI_loaner_manager</recipient>
|
<type>group</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/NDT_ReturnGoods_zh_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>ANI_timeOut</fullName>
|
<description>ANI延期收货</description>
|
<protected>false</protected>
|
<recipients>
|
<recipient>ANI_loaner_manager</recipient>
|
<type>group</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/NDT_OutTime_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>DeliverGoods</fullName>
|
<description>发货邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Approver__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Loaner_Agent__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>sales_User__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/DeliverGoods_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>NDT_DeliverGoods</fullName>
|
<description>NDT发货提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Director_email__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<recipient>NDT_loaner_manager</recipient>
|
<type>group</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/NDT_DeliverGoods_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>NDT_ReturnGoods</fullName>
|
<description>NDT_回寄物流提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<recipient>NDT_loaner_manager</recipient>
|
<type>group</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/NDT_ReturnGoods_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>NDT_loanerApp</fullName>
|
<description>NDT转借物流发货</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Director_email__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<recipient>NDT_loaner_manager</recipient>
|
<type>group</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/NDT_ReturnGoods_zh_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>NDT_timeOut</fullName>
|
<description>NDT延期收货</description>
|
<protected>false</protected>
|
<recipients>
|
<recipient>NDT_loaner_manager</recipient>
|
<type>group</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/NDT_OutTime_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>NDT_timeOut_bo</fullName>
|
<description>NDT延期收货驳回</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Director_email__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/NDT_OutTime_reject_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>NDT_timeOut_pass</fullName>
|
<description>NDT延期收货批准</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Director_email__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/NDT_OutTime_pass_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>ReturnEmail</fullName>
|
<description>回寄邮件提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Approver__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>sales_User__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/ReturnGoods_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>autoEmail</fullName>
|
<description>自动收货提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/Received_Mail</template>
|
</alerts>
|
<alerts>
|
<fullName>passEmail</fullName>
|
<description>延期收货_批准</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Approver__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>sales_User__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/Pass1_Mail</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>Delay_Reason_YES</fullName>
|
<field>Automatic_Received_Date__c</field>
|
<formula>Delay_Received_Date__c</formula>
|
<name>延期收货_批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Director_email</fullName>
|
<field>Director_email__c</field>
|
<formula>loaner_application__r.Director_email__c</formula>
|
<name>责任人邮箱</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
</fieldUpdates>
|
<rules>
|
<fullName>ANI发货提醒</fullName>
|
<actions>
|
<name>ANI_DeliverGoods</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>AND(IsDeliveryLogistics__c, Consignor_LogisticsNumber__c != null, NOT(IsLendOrder__c), Loaner_type__c == 'ANI' )</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>ANI回寄邮件</fullName>
|
<actions>
|
<name>ANI_ReturnGoods</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>AND(NOT( IsDeliveryLogistics__c ), Return_LogisticsNumber__c != null , Loaner_type__c == 'ANI')</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>ANI转借发货提醒</fullName>
|
<actions>
|
<name>ANI_loanerApp</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>AND(IsDeliveryLogistics__c, Consignor_LogisticsNumber__c != null, IsLendOrder__c , Loaner_type__c == 'ANI' )</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>NDT发货提醒</fullName>
|
<actions>
|
<name>NDT_DeliverGoods</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>AND(IsDeliveryLogistics__c, Consignor_LogisticsNumber__c != null, NOT(IsLendOrder__c), Loaner_type__c == 'NDT' )</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>NDT回寄邮件</fullName>
|
<actions>
|
<name>NDT_ReturnGoods</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>AND(NOT( IsDeliveryLogistics__c ), Return_LogisticsNumber__c != null , Loaner_type__c == 'NDT')</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>NDT转借发货提醒</fullName>
|
<actions>
|
<name>NDT_loanerApp</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>AND(IsDeliveryLogistics__c, Consignor_LogisticsNumber__c != null, IsLendOrder__c , Loaner_type__c == 'NDT' )</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>发货提醒</fullName>
|
<actions>
|
<name>DeliverGoods</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>AND(IsDeliveryLogistics__c,NotReceivingNum__c > 0, OR( ISCHANGED( Consignor_LogisticsCompany__c ) , ISCHANGED( Consignor_LogisticsNumber__c ) ),OR( Loaner_type__c == 'IE',Loaner_type__c == 'RVI',Loaner_type__c == 'BS' ) )</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>回寄邮件</fullName>
|
<actions>
|
<name>ReturnEmail</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>AND(NOT( IsDeliveryLogistics__c ),NotReceivingNum__c > 0, OR( ISCHANGED( Return_LogisticsCompany__c ) , ISCHANGED( Return_LogisticsNumber__c ) ),OR( Loaner_type__c == 'IE',Loaner_type__c == 'RVI',Loaner_type__c == 'BS' ))</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>自动收货提醒</fullName>
|
<active>true</active>
|
<criteriaItems>
|
<field>Loaner_Express__c.Remind_Received_Date__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Loaner_Express__c.NotReceivingNum__c</field>
|
<operation>greaterThan</operation>
|
<value>0</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
<workflowTimeTriggers>
|
<actions>
|
<name>autoEmail</name>
|
<type>Alert</type>
|
</actions>
|
<offsetFromField>Loaner_Express__c.Remind_Received_Date__c</offsetFromField>
|
<timeLength>0</timeLength>
|
<workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
</rules>
|
<rules>
|
<fullName>责任人邮箱</fullName>
|
<actions>
|
<name>Director_email</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>loaner_application__c.Director_email__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|