Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<decisions>
<name>Membership_and_Opportunity_products_found</name>
<label>Membership and Opportunity products found</label>
<locationX>182</locationX>
<locationY>386</locationY>
<defaultConnectorLabel>Default Outcome</defaultConnectorLabel>
<rules>
<name>Items_found</name>
<conditionLogic>and</conditionLogic>
<conditions>
<leftValueReference>Get_OpportunityProduct.Id</leftValueReference>
<operator>IsNull</operator>
<rightValue>
<booleanValue>false</booleanValue>
</rightValue>
</conditions>
<conditions>
<leftValueReference>Get_Membership_Record.Id</leftValueReference>
<operator>IsNull</operator>
<rightValue>
<booleanValue>false</booleanValue>
</rightValue>
</conditions>
<connector>
<targetReference>Update_Membership_Records</targetReference>
</connector>
<label>Product Item Found</label>
</rules>
</decisions>
<environments>Default</environments>
<formulas>
<name>formulaEndDate</name>
<dataType>Date</dataType>
<expression>{!$Flow.CurrentDate} + {!Get_OpportunityProduct.Product2.Term__c}</expression>
</formulas>
<interviewLabel>Membership Upgrade/Downgrade Data Processing {!$Flow.CurrentDateTime}</interviewLabel>
<label>DPEV-Membership Upgrade/Downgrade Data Processing</label>
<processMetadataValues>
<name>BuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>CanvasMode</name>
<value>
<stringValue>AUTO_LAYOUT_CANVAS</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>OriginBuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processType>AutoLaunchedFlow</processType>
<recordLookups>
<name>Get_Membership_Record</name>
<label>Get Membership Record</label>
<locationX>182</locationX>
<locationY>278</locationY>
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
<connector>
<targetReference>Membership_and_Opportunity_products_found</targetReference>
</connector>
<filterLogic>and</filterLogic>
<filters>
<field>Id</field>
<operator>EqualTo</operator>
<value>
<elementReference>Get_OpportunityProduct.Membership__r.Id</elementReference>
</value>
</filters>
<getFirstRecordOnly>true</getFirstRecordOnly>
<object>Membership__c</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordLookups>
<recordLookups>
<name>Get_OpportunityProduct</name>
<label>Get OpportunityProduct</label>
<locationX>182</locationX>
<locationY>170</locationY>
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
<connector>
<targetReference>Get_Membership_Record</targetReference>
</connector>
<filterLogic>and</filterLogic>
<filters>
<field>Id</field>
<operator>EqualTo</operator>
<value>
<elementReference>$Record.Record_Id__c</elementReference>
</value>
</filters>
<getFirstRecordOnly>true</getFirstRecordOnly>
<object>OpportunityLineItem</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordLookups>
<recordUpdates>
<name>Update_Membership_Records</name>
<label>Update Membership Records</label>
<locationX>50</locationX>
<locationY>494</locationY>
<filterLogic>and</filterLogic>
<filters>
<field>Id</field>
<operator>EqualTo</operator>
<value>
<elementReference>Get_Membership_Record.Id</elementReference>
</value>
</filters>
<inputAssignments>
<field>End_Date__c</field>
<value>
<elementReference>formulaEndDate</elementReference>
</value>
</inputAssignments>
<inputAssignments>
<field>Product__c</field>
<value>
<elementReference>Get_OpportunityProduct.Id</elementReference>
</value>
</inputAssignments>
<object>Membership__c</object>
</recordUpdates>
<start>
<locationX>56</locationX>
<locationY>0</locationY>
<connector>
<targetReference>Get_OpportunityProduct</targetReference>
</connector>
<object>DPEV_Create_Membership_Upgrade_Downgrade__e</object>
<triggerType>PlatformEvent</triggerType>
</start>
<status>Active</status>
</Flow>