<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>ActionEmailServiceAproval</fullName>
|
<description>服务技师报告审批通过邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>CampainFolder/Meetting_PlanApproved</template>
|
</alerts>
|
<alerts>
|
<fullName>ActionEmailServiceNotAproval</fullName>
|
<description>服务技师会议计划审批不通过</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>ServiceDesignDep__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>CampainFolder/Meetting_PlanNotApproved</template>
|
</alerts>
|
<alerts>
|
<fullName>CampaignCostApprovalActionEmail</fullName>
|
<description>会议费用审批已通过邮件提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<type>accountOwner</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>CampainFolder/Meetting_CostApprovalEmailTemplate</template>
|
</alerts>
|
<alerts>
|
<fullName>CampaignCostNotApprovalActionEmail</fullName>
|
<description>会议费用审批已驳回邮件提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>CampainFolder/Meetting_CostNotApprovalEmailTemplate</template>
|
</alerts>
|
<alerts>
|
<fullName>CancelApprovelEmailService</fullName>
|
<description>服务技师项目取消审批通过邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>CampainFolder/CancelServiceEmailTemplate</template>
|
</alerts>
|
<alerts>
|
<fullName>FifteenDaysBeforeOpenDay</fullName>
|
<description>学会培训召开日前15天邮件提醒及时借用备品</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>OCM_MP_Admin_assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>CampainFolder/Meeting_Remind_Rental_Apply</template>
|
</alerts>
|
<alerts>
|
<fullName>ServiceDatemodifiedApproval</fullName>
|
<description>服务技师时间修改审批通过</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>ServiceDesignDep__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>CampainFolder/DateModifiedEmailgetApproval</template>
|
</alerts>
|
<alerts>
|
<fullName>sendMail_owner1</fullName>
|
<description>会议计划审批邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>CampainFolder/Meetting_Plan</template>
|
</alerts>
|
<alerts>
|
<fullName>sendMail_owner2</fullName>
|
<description>会议报告审批邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>CampainFolder/Meetting_Report</template>
|
</alerts>
|
<alerts>
|
<fullName>sendMail_owner3</fullName>
|
<description>公开状态下的会议取消审批邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>CampainFolder/CancleShenpiEmail</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>ActionServiceCancelUpdate</fullName>
|
<field>Mailflg_Cancel_Service__c</field>
|
<literalValue>1</literalValue>
|
<name>更新服务技师取消提醒邮件标识</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Campaign_Name_Make</fullName>
|
<field>Name</field>
|
<formula>IF(ISNULL(Name2__c), "*", Name2__c & " (" & Substitute(TEXT(StartDate), "-", "/") & " - " & Substitute(TEXT(EndDate), "-", "/") & ")")</formula>
|
<name>キャンペーン名称作成</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>MeetingAutoNumber</fullName>
|
<description>2018.12.13 更改
|
'MT-' + DepartmentAB__c + '-' + AutoN__c</description>
|
<field>Num__c</field>
|
<formula>IF(TEXT(Sponsor_Ones_Post__c ) = '医疗产品培训本部'||TEXT(Sponsor_Ones_Post__c) = 'CTEC教育本部', 'TR-' + DepartmentAB__c + '-' + AutoN__c, 'MT-' + DepartmentAB__c + '-' + AutoN__c)</formula>
|
<name>学会会议编码</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>NameUpdateCampaignService</fullName>
|
<description>"当“培训类型”选择“BME”时,按照下述规则编名称:
|
“开班日期所在P”+“省字段”+“内镜临床工程师培养班”(开班日期所在月份)”
|
|
--zzm 230823修改规则
|
"</description>
|
<field>Name2__c</field>
|
<formula>OCMNumber__c+ SUBSTITUTE(Province__c, '自治区', '') + '内镜临床工程师培养班(' + TEXT(MONTH(StartDate__c)) + '月)'</formula>
|
<name>服务培训/技师培养名称生成</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SendMail_after3</fullName>
|
<field>Mailflg_after3__c</field>
|
<literalValue>1</literalValue>
|
<name>送信标识after3</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SendMail_after45</fullName>
|
<field>Mailflg_after45__c</field>
|
<literalValue>1</literalValue>
|
<name>送信标识after45</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SendMail_before15</fullName>
|
<field>Mailflg_before15__c</field>
|
<literalValue>1</literalValue>
|
<name>送信标识before15</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SendMail_before7</fullName>
|
<field>Mailflg_before7__c</field>
|
<literalValue>1</literalValue>
|
<name>送信标识before7</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SendMail_cancel</fullName>
|
<field>Mailflg_cancel__c</field>
|
<literalValue>1</literalValue>
|
<name>送信标识cancel</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>ServiceApproved</fullName>
|
<description>服务技师审批通过,通过batch发邮件给服务企划部窗口&所在省销售服务(副)经理&所在本部销售服务(副)部长</description>
|
<field>Mailflg_Approval_service__c</field>
|
<literalValue>1</literalValue>
|
<name>服务技师审批通过</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SetCampaignIsActive</fullName>
|
<field>IsActive</field>
|
<literalValue>1</literalValue>
|
<name>记录启用设定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SetCancleReasonNull</fullName>
|
<field>CancleReason__c</field>
|
<name>设定取消理由为空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SetStatusEnd</fullName>
|
<field>Status</field>
|
<literalValue>已结束</literalValue>
|
<name>设定-修改状态到已结束</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_application_day_blank</fullName>
|
<field>Report_approved_day__c</field>
|
<name>设定=报告提交日(空)</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_approved_day</fullName>
|
<field>Approved_day__c</field>
|
<formula>today()</formula>
|
<name>设定-报告批准日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_cost_Apply_Date</fullName>
|
<field>cost_Apply_Date__c</field>
|
<formula>Today()</formula>
|
<name>设定-费用申请日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_cost_Apply_Date_blank</fullName>
|
<field>cost_Apply_Date__c</field>
|
<name>设定-费用申请日(空)</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_open_event_info</fullName>
|
<field>Open_day__c</field>
|
<formula>today()</formula>
|
<name>设定-输入信息通知日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_open_request</fullName>
|
<field>Status</field>
|
<literalValue>申请中</literalValue>
|
<name>设定-状态修改到申请中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_open_request_blank</fullName>
|
<field>Open_request_day__c</field>
|
<name>设定-公开申请日(空)</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_open_request_day</fullName>
|
<field>Open_request_day__c</field>
|
<formula>today()</formula>
|
<name>设定-公开申请日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_status_as_Approval_cost</fullName>
|
<field>CostStatus__c</field>
|
<literalValue>费用已审批</literalValue>
|
<name>设定-费用状态修改到已审批</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_status_as_Input_cost</fullName>
|
<field>CostStatus__c</field>
|
<literalValue>费用已填写</literalValue>
|
<name>设定-费用状态修改到已填写</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_status_as_approved</fullName>
|
<field>Status</field>
|
<literalValue>已提交报告</literalValue>
|
<name>设定=状态批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_status_as_cancle</fullName>
|
<field>Status</field>
|
<literalValue>取消</literalValue>
|
<name>设定-状态更新到取消</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_status_as_prepare</fullName>
|
<field>Status</field>
|
<literalValue>公开中</literalValue>
|
<name>设定-状态更新到公开中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_status_draft</fullName>
|
<field>Status</field>
|
<literalValue>草案中</literalValue>
|
<name>设定-状态更改到草案中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_submit_day</fullName>
|
<field>Report_approved_day__c</field>
|
<formula>today()</formula>
|
<name>设定=报告提交日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateCancelDate2NullInCampaign</fullName>
|
<field>CancelDate__c</field>
|
<name>置空取消时间</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateCancelDateInCampaign</fullName>
|
<description>记录取消时间</description>
|
<field>CancelDate__c</field>
|
<formula>Today()</formula>
|
<name>记录取消时间</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateIsPassOrFail</fullName>
|
<description>更新是否批准为0</description>
|
<field>is_pass_or_fail__c</field>
|
<formula>0</formula>
|
<name>更新是否批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateName2ToNameInCampaign</fullName>
|
<field>Name</field>
|
<formula>Name2__c</formula>
|
<name>学会・培训-名称赋值</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateProvinceToTextInServiceCampaign</fullName>
|
<field>Province_Text__c</field>
|
<formula>Province__c</formula>
|
<name>主担当省文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateReportCodeInServiceCampaign</fullName>
|
<description>TrainingType__c + '-' + OCMNumber__c + '-' + SalesdepartmentAD__c + ProvinceAD__c+ '-'+ AutoN__c</description>
|
<field>TrainingCode__c</field>
|
<formula>Text(TrainingType__c) + '-' + OCMNumber__c + '-' + SalesdepartmentAD__c + ProvinceAD__c+ '-'+ AutoN__c</formula>
|
<name>学会会议编码(服务技师培训)</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateSalesdepartmentTextInServiceCam</fullName>
|
<field>Salesdepartment_Text__c</field>
|
<formula>Salesdepartment__c</formula>
|
<name>主担当大区文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateStatusSubmited</fullName>
|
<field>Status</field>
|
<literalValue>已提交报告</literalValue>
|
<name>更新状态到已提交报告</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>before7Service</fullName>
|
<field>Mailflg_before7_service__c</field>
|
<literalValue>1</literalValue>
|
<name>送信标识before7Service</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>cancelApprovalDateUpdate</fullName>
|
<field>cancelApprovalDate__c</field>
|
<formula>Today()</formula>
|
<name>设定-取消申请批准日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>canelApplyDateUpdate</fullName>
|
<field>canelApplyDate__c</field>
|
<formula>Today()</formula>
|
<name>设定-取消申请提交日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>canelApplyDateUpdateToBlank</fullName>
|
<field>canelApplyDate__c</field>
|
<name>设定-取消申请提交日为空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>set_cost_Approved_Day</fullName>
|
<field>cost_Approved_Day__c</field>
|
<formula>today()</formula>
|
<name>设定-会议费用批准日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>setupStartDate</fullName>
|
<field>StartDate__c</field>
|
<formula>NULLVALUE(CeremonyDate__c, Lesson1Date__c)</formula>
|
<name>服务技师生成开班日期</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_fail</fullName>
|
<field>is_pass_or_fail__c</field>
|
<formula>2</formula>
|
<name>更改是否批准为2</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>update_pass</fullName>
|
<field>is_pass_or_fail__c</field>
|
<formula>1</formula>
|
<name>更改是否批准为1</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>公开时启用</fullName>
|
<actions>
|
<name>SetCampaignIsActive</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Campaign.Status</field>
|
<operation>equals</operation>
|
<value>公开中</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.RecordTypeId</field>
|
<operation>notEqual</operation>
|
<value>5.服务培训/技师培养</value>
|
</criteriaItems>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>学会%E3%83%BB培训-名称作成</fullName>
|
<actions>
|
<name>Campaign_Name_Make</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>Name = NAME2+開始日・終了日</description>
|
<formula>(Isnew() || Ischanged(Name2__c) || Ischanged(StartDate) || Ischanged(EndDate) )&& RecordType.DeveloperName != 'ServiceEngineerTraining'</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>学会%E3%83%BB培训-名称作成%EF%BC%88服务技师培训%EF%BC%89</fullName>
|
<actions>
|
<name>NameUpdateCampaignService</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>RecordType.DeveloperName = 'ServiceEngineerTraining' && isNew()</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>学会%E3%83%BB培训-名称赋值%EF%BC%88服务技师培训%EF%BC%89</fullName>
|
<actions>
|
<name>UpdateName2ToNameInCampaign</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>!ISBLANK(Name2__c) && RecordType.DeveloperName = 'ServiceEngineerTraining'</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>学会培训召开日前15天邮件提醒及时借用备品</fullName>
|
<active>true</active>
|
<booleanFilter>1 AND 2 AND (3 OR 4 ) AND 5 AND 6</booleanFilter>
|
<criteriaItems>
|
<field>Campaign.Open_day__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.Status</field>
|
<operation>equals</operation>
|
<value>公开中</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.Number_Rental_Apply__c</field>
|
<operation>equals</operation>
|
<value>0</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.Number_Rental_Apply__c</field>
|
<operation>equals</operation>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.BetweenTodayStartDate__c</field>
|
<operation>greaterOrEqual</operation>
|
<value>8</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.RecordTypeId</field>
|
<operation>notEqual</operation>
|
<value>5.服务培训/技师培养</value>
|
</criteriaItems>
|
<description>update lxy 20201105 备品申请单数逻辑改成或的关系</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
<workflowTimeTriggers>
|
<actions>
|
<name>FifteenDaysBeforeOpenDay</name>
|
<type>Alert</type>
|
</actions>
|
<offsetFromField>Campaign.StartDate</offsetFromField>
|
<timeLength>-15</timeLength>
|
<workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
</rules>
|
<rules>
|
<fullName>更新会议开始前15天提醒邮件标识</fullName>
|
<active>true</active>
|
<criteriaItems>
|
<field>Campaign.Open_day__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.Status</field>
|
<operation>notEqual</operation>
|
<value>已提交报告,已结束,取消,已结束(没公开)</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.BetweenTodayStartDate__c</field>
|
<operation>greaterOrEqual</operation>
|
<value>15</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.RecordTypeId</field>
|
<operation>notEqual</operation>
|
<value>5.服务培训/技师培养</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
<workflowTimeTriggers>
|
<offsetFromField>Campaign.StartDate</offsetFromField>
|
<timeLength>-7</timeLength>
|
<workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
<workflowTimeTriggers>
|
<actions>
|
<name>SendMail_before15</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<offsetFromField>Campaign.StartDate</offsetFromField>
|
<timeLength>-15</timeLength>
|
<workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
</rules>
|
<rules>
|
<fullName>更新会议开始前7天提醒邮件标识</fullName>
|
<active>false</active>
|
<criteriaItems>
|
<field>Campaign.Open_day__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.Status</field>
|
<operation>notEqual</operation>
|
<value>已提交报告,已结束,取消,已结束(没公开)</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.BetweenTodayStartDate__c</field>
|
<operation>greaterOrEqual</operation>
|
<value>7</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.RecordTypeId</field>
|
<operation>notEqual</operation>
|
<value>5.服务培训/技师培养</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
<workflowTimeTriggers>
|
<actions>
|
<name>SendMail_before7</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<offsetFromField>Campaign.StartDate</offsetFromField>
|
<timeLength>-7</timeLength>
|
<workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
</rules>
|
<rules>
|
<fullName>更新会议结束后3天提醒邮件标识</fullName>
|
<active>true</active>
|
<criteriaItems>
|
<field>Campaign.Status</field>
|
<operation>equals</operation>
|
<value>公开中,取消申请中,报告提交</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.BetweenTodayEndDate__c</field>
|
<operation>greaterOrEqual</operation>
|
<value>-3</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.RecordTypeId</field>
|
<operation>notEqual</operation>
|
<value>5.服务培训/技师培养</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
<workflowTimeTriggers>
|
<actions>
|
<name>SendMail_after3</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<offsetFromField>Campaign.EndDate</offsetFromField>
|
<timeLength>3</timeLength>
|
<workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
</rules>
|
<rules>
|
<fullName>更新会议计划取消提醒邮件标识</fullName>
|
<actions>
|
<name>SendMail_cancel</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Campaign.Status</field>
|
<operation>equals</operation>
|
<value>取消</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.Open_day__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.RecordTypeId</field>
|
<operation>notEqual</operation>
|
<value>5.服务培训/技师培养</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>更新会议计划登录45天提醒邮件标识</fullName>
|
<active>true</active>
|
<criteriaItems>
|
<field>Campaign.Open_day__c</field>
|
<operation>equals</operation>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.Status</field>
|
<operation>notEqual</operation>
|
<value>已结束,取消,已结束(没公开)</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.RecordTypeId</field>
|
<operation>notEqual</operation>
|
<value>5.服务培训/技师培养</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
<workflowTimeTriggers>
|
<actions>
|
<name>SendMail_after45</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<offsetFromField>Campaign.CreatedDate</offsetFromField>
|
<timeLength>45</timeLength>
|
<workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
</rules>
|
<rules>
|
<fullName>更新服务技师培训项目开始前7天提醒邮件标识</fullName>
|
<active>true</active>
|
<criteriaItems>
|
<field>Campaign.Open_day__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.Status</field>
|
<operation>notEqual</operation>
|
<value>已结束,已提交报告,取消,已结束(没公开)</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.BetweenTodayStartDate__c</field>
|
<operation>greaterOrEqual</operation>
|
<value>7</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.RecordTypeId</field>
|
<operation>equals</operation>
|
<value>5.服务培训/技师培养</value>
|
</criteriaItems>
|
<description>更新服务技师培训项目开始前7天提醒邮件标识</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
<workflowTimeTriggers>
|
<actions>
|
<name>before7Service</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<offsetFromField>Campaign.StartDate__c</offsetFromField>
|
<timeLength>-7</timeLength>
|
<workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
</rules>
|
<rules>
|
<fullName>服务技师公开时设置是否批准为0</fullName>
|
<actions>
|
<name>UpdateIsPassOrFail</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Campaign.Status</field>
|
<operation>equals</operation>
|
<value>公开中</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Campaign.RecordTypeId</field>
|
<operation>equals</operation>
|
<value>5.服务培训/技师培养</value>
|
</criteriaItems>
|
<description>服务技师公开时设置是否批准为0</description>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>服务技师培训字段文本化</fullName>
|
<actions>
|
<name>UpdateProvinceToTextInServiceCampaign</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>UpdateSalesdepartmentTextInServiceCam</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Campaign.RecordTypeId</field>
|
<operation>equals</operation>
|
<value>5.服务培训/技师培养</value>
|
</criteriaItems>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>服务技师计算开班日期</fullName>
|
<actions>
|
<name>setupStartDate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>自动编码</fullName>
|
<actions>
|
<name>MeetingAutoNumber</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>RecordType.DeveloperName != 'ServiceEngineerTraining'</formula>
|
<triggerType>onCreateOnly</triggerType>
|
</rules>
|
<rules>
|
<fullName>自动编码%EF%BC%88服务技师培训%EF%BC%89</fullName>
|
<actions>
|
<name>UpdateReportCodeInServiceCampaign</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Campaign.RecordTypeId</field>
|
<operation>equals</operation>
|
<value>5.服务培训/技师培养</value>
|
</criteriaItems>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|