<?xml version="1.0" encoding="UTF-8"?>
|
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<apiVersion>59.0</apiVersion>
|
<environments>Default</environments>
|
<formulas>
|
<name>Shipping_Finished_Day_Func</name>
|
<dataType>Date</dataType>
|
<expression>if ( or( text({!$Record.StageName}) = '出荷', text({!$Record.StageName}) = '完了'), {!$Record.Last_Shipping_Date__c},null)</expression>
|
</formulas>
|
<formulas>
|
<name>Status_Formula_value</name>
|
<dataType>String</dataType>
|
<expression>if(Text({!$Record__Prior.StageName})='敗戦' && NOT(ISBLANK({!$Record.Final_Contract_Proceeded_Date__c})),'失单',
|
if(Text({!$Record.StageName})='削除' && NOT(ISBLANK({!$Record.Final_Contract_Proceeded_Date__c})),'取消',
|
if(Text({!$Record.StageName})='完了','08 已结束',
|
if(Text({!$Record.StageName})='出荷',if(NOT(ISBLANK({!$Record.Last_Install_Date__c})),'07 已安装',if(NOT(ISBLANK({!Shipping_Finished_Day_Func})),'06 已发货','')),
|
if(Text({!$Record.StageName})='注残',if(NOT(ISBLANK({!$Record.Last_Delivery_Date__c})),'05 已分配,待发货',if(NOT(ISBLANK({!$Record.Deposit_In_Full_Day__c})),'04 已订货,付全款',if(NOT(ISBLANK({!$Record.X30_Deposit_Day_New__c})),'03 已订货,付订金',if(NOT(ISBLANK({!$Record.Max_LastApproveDate__c})),'02 库存已预留,未付款',if(OR(NOT(ISBLANK({!$Record.Min_FirstApproveDate__c})),NOT(ISBLANK({!$Record.Contract_Recieve_Date__c}))),'01 已录入订单,未付款',''))))),
|
if(Text({!$Record.StageName})='引合',if(NOT(ISBLANK({!$Record.SAP_Send_OK_Date__c})),'12 已签约',
|
if(NOT(ISBLANK({!$Record.Assistant_Applied_Date__c})),'11 价格申请中',
|
if(NOT(ISBLANK({!$Record.Closing_Bid_Date__c})),'10 已中标',
|
if(AND(NOT(ISBLANK({!$Record.Bid_Date__c})),{!$Record.Bid_Date__c}<=Today()),'09 已招标',
|
if(OR(NOT(ISBLANK({!$Record.Autholization_Activated_Date__c})),NOT(ISBLANK({!$Record.Authorized_Date__c}))),'08 已授权',
|
if(AND(NOT(ISBLANK({!$Record.Determine_oly_parameter_day__c})), TEXT({!$Record.Opportunity_stage__c}) = '确定了OLY参数'),'07 已确认参数(OLY)',
|
if(AND(NOT(ISBLANK({!$Record.Determine_competitor_parameter_date__c})), TEXT({!$Record.Opportunity_stage__c}) = '确定了对手参数'),'07 已确认参数(对手)',
|
if(AND(NOT(ISBLANK({!$Record.No_Parameter_date__c})), TEXT({!$Record.Opportunity_stage__c}) = '没有确定参数'),'07 已确认参数(中立)',
|
if(NOT(ISBLANK({!$Record.ImportDemonstration_Rejection_date__c})),'06 论证未通过',
|
if(NOT(ISBLANK({!$Record.ImportDemonstration_Approval_date__c})),'06 论证已通过',
|
if(NOT(ISBLANK({!$Record.ImportDemonstration_Filing_date__c})),'05 已申请进口论证',
|
if(NOT(ISBLANK({!$Record.Budget_unapproved_date__c})),'04 预算未批准',
|
if(NOT(ISBLANK({!$Record.Budget_approval_date__c})),'04 预算已批准',
|
if(NOT(ISBLANK({!$Record.Budget_application_date__c})),'03 已申请预算',if(NOT(ISBLANK({!$Record.LoanApprovedDate__c})),'02 贷款批准',if(NOT(ISBLANK({!$Record.Last_Follow_Up_Date__c})),'01 跟进中',if(NOT(ISBLANK({!$Record.CreatedDate})),'00 未跟进',''))))))))))))))))),
|
''))))))</expression>
|
</formulas>
|
<interviewLabel>复制状态2到选项列表值快速 {!$Flow.CurrentDateTime}</interviewLabel>
|
<label>复制状态2到选项列表值快速</label>
|
<processMetadataValues>
|
<name>BuilderType</name>
|
<value>
|
<stringValue>LightningFlowBuilder</stringValue>
|
</value>
|
</processMetadataValues>
|
<processMetadataValues>
|
<name>CanvasMode</name>
|
<value>
|
<stringValue>FREE_FORM_CANVAS</stringValue>
|
</value>
|
</processMetadataValues>
|
<processMetadataValues>
|
<name>OriginBuilderType</name>
|
<value>
|
<stringValue>LightningFlowBuilder</stringValue>
|
</value>
|
</processMetadataValues>
|
<processType>AutoLaunchedFlow</processType>
|
<recordUpdates>
|
<name>updateStatus_Formula_Option</name>
|
<label>更新状态2(选项列表)</label>
|
<locationX>499</locationX>
|
<locationY>335</locationY>
|
<inputAssignments>
|
<field>Status_Formula_Option__c</field>
|
<value>
|
<elementReference>Status_Formula_value</elementReference>
|
</value>
|
</inputAssignments>
|
<inputReference>$Record</inputReference>
|
</recordUpdates>
|
<start>
|
<locationX>373</locationX>
|
<locationY>48</locationY>
|
<connector>
|
<targetReference>updateStatus_Formula_Option</targetReference>
|
</connector>
|
<filterFormula>{!$Record.Status_Formula__c}<>TEXT({!$Record.Status_Formula_Option__c})</filterFormula>
|
<object>Opportunity</object>
|
<recordTriggerType>CreateAndUpdate</recordTriggerType>
|
<triggerType>RecordBeforeSave</triggerType>
|
</start>
|
<status>Active</status>
|
</Flow>
|