<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>From_Business_To_Manager</fullName>
|
<description>担当发送的日报提醒邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Manager_Mail__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/From_Business_To_Manager</template>
|
</alerts>
|
<alerts>
|
<fullName>From_Manager_To_Business</fullName>
|
<description>经理的日报反馈邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Manager_Mail__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/From_Manager_To_Business</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>AutoRest</fullName>
|
<field>Daily_Report_Data_Type__c</field>
|
<literalValue>一日休假</literalValue>
|
<name>自动休假</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Daily_Report_Key</fullName>
|
<field>Daily_Report_Key__c</field>
|
<formula>Text(Reported_Date__c) + Reporter__c</formula>
|
<name>Daily_Report_Key</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Daily_Reporter_incharge_product_Set</fullName>
|
<description>「報告者-推进员工负责产品」設定</description>
|
<field>Reporter_incharge_product__c</field>
|
<formula>TEXT(Reporter__r.Product_specialist_incharge_product__c)</formula>
|
<name>「報告者-推进员工负责产品」設定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Reporter_Job_Category_Set</fullName>
|
<field>Reporter_Job_Category__c</field>
|
<formula>Text(Reporter__r.Job_Category__c)</formula>
|
<name>「報告者-職種」設定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Reporter_Product_specialist_incharge_jia</fullName>
|
<field>Responsible_for_Products_Concurrently__c</field>
|
<formula>TEXT(Reporter__r.Responsible_for_Products_Concurrently__c)</formula>
|
<name>报告者・推进员工负责产品(兼)</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Reporter_Salesdepartment_Set</fullName>
|
<field>Reporter_Salesdepartment__c</field>
|
<formula>Reporter__r.Salesdepartment__c</formula>
|
<name>「報告書-本部」設定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Submit_DateTime_New</fullName>
|
<field>Submit_DateTime_New__c</field>
|
<formula>NOW()</formula>
|
<name>初回提出時刻</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Submit_Date_New</fullName>
|
<field>Submit_Date_New__c</field>
|
<formula>TODAY()</formula>
|
<name>初回提出日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Upate_Reporter_State</fullName>
|
<field>Reporter_State__c</field>
|
<formula>text( Reporter__r.Province__c )</formula>
|
<name>「報告者-省」設定</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Year_monthTOtxt</fullName>
|
<field>Year_month_txt__c</field>
|
<formula>Year_month__c</formula>
|
<name>年月更新_公式转文本</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>latestSubmitDate</fullName>
|
<field>Submit_Date_Latest__c</field>
|
<formula>today()</formula>
|
<name>最終提出日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>latestSubmitDatetime</fullName>
|
<field>Submit_DateTime_Latest__c</field>
|
<formula>now()</formula>
|
<name>最終提出時刻</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>Daily_Report_Key</fullName>
|
<actions>
|
<name>Daily_Report_Key</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>True</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>マネージャーからのメール送信</fullName>
|
<actions>
|
<name>From_Manager_To_Business</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>AND ( LastModifiedById = Reporter__r.ManagerId , Mail_Send_Check__c )</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>初回提出日%E3%83%BB時刻設定</fullName>
|
<actions>
|
<name>Submit_DateTime_New</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Submit_Date_New</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>latestSubmitDate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>latestSubmitDatetime</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>ISPICKVAL(Status__c, '申請中') && isblank( Submit_Date_New__c )</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>営業からのメール送信</fullName>
|
<actions>
|
<name>From_Business_To_Manager</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>AND ( LastModifiedById == OwnerId , Mail_Send_Check__c )</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>年月更新</fullName>
|
<actions>
|
<name>Year_monthTOtxt</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>日報一覧毎回実行公式变成到文本</fullName>
|
<actions>
|
<name>Daily_Reporter_incharge_product_Set</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Reporter_Job_Category_Set</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Reporter_Product_specialist_incharge_jia</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Reporter_Salesdepartment_Set</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Upate_Reporter_State</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>最終提出日%E3%83%BB時刻設定</fullName>
|
<actions>
|
<name>latestSubmitDate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>latestSubmitDatetime</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>ISPICKVAL(Status__c, '申請中') && not( isblank( Submit_Date_New__c ))</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>自动休假</fullName>
|
<actions>
|
<name>AutoRest</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>AND(Count_of_Event__c> 0,Count_of_Event__c = Count_Kyuka_of_Event__c)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|