Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About FLOW: Create a Membership Finder Data Processing Flow - V2.0 #160

Open
wants to merge 4 commits into
base: metecho/february-2024-sprint
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions cumulusci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
name: Membership-Management
package:
name: Membership-Management
api_version: '59.0'
api_version: '48.0'
source_format: sfdx

tasks:
Expand All @@ -16,4 +16,4 @@ tasks:
robot_testdoc:
options:
path: robot/Membership-Management/tests
output: robot/Membership-Management/doc/Membership-Management_tests.html
output: robot/Membership-Management/doc/Membership-Management_tests.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<decisions>
<description>Membership Record Found ?</description>
<name>Membership_Record_Found</name>
<label>Membership Record Found ?</label>
<locationX>182</locationX>
<locationY>494</locationY>
<defaultConnector>
<targetReference>Update_Membership_Finder_Ran_on_Opportunity_Product</targetReference>
</defaultConnector>
<defaultConnectorLabel>No</defaultConnectorLabel>
<rules>
<name>Yes</name>
<conditionLogic>and</conditionLogic>
<conditions>
<leftValueReference>Get_Membership</leftValueReference>
<operator>IsNull</operator>
<rightValue>
<booleanValue>false</booleanValue>
</rightValue>
</conditions>
<connector>
<targetReference>Update_Membership_on_Opportunity_Product</targetReference>
</connector>
<label>Yes</label>
</rules>
</decisions>
<description>Membership Finder Data Processing Flow (Platform Event Triggered Flow)</description>
<environments>Default</environments>
<interviewLabel>PERT: Membership Finder Data Processing Flow {!$Flow.CurrentDateTime}</interviewLabel>
<label>PERT: Membership Finder Data Processing Flow</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>
<description>Get Membership</description>
<name>Get_Membership</name>
<label>Get Membership</label>
<locationX>182</locationX>
<locationY>386</locationY>
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
<connector>
<targetReference>Membership_Record_Found</targetReference>
</connector>
<filterLogic>and</filterLogic>
<filters>
<field>Account__c</field>
<operator>EqualTo</operator>
<value>
<elementReference>Get_Related_Opportunity.AccountId</elementReference>
</value>
</filters>
<filters>
<field>End_Date__c</field>
<operator>GreaterThan</operator>
<value>
<elementReference>$Flow.CurrentDate</elementReference>
</value>
</filters>
<getFirstRecordOnly>true</getFirstRecordOnly>
<object>Membership__c</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordLookups>
<recordLookups>
<description>Get Opportunity Product</description>
<name>Get_Opportunity_Product</name>
<label>Get Opportunity Product</label>
<locationX>182</locationX>
<locationY>170</locationY>
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
<connector>
<targetReference>Get_Related_Opportunity</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>
<recordLookups>
<description>Get Related Opportunity</description>
<name>Get_Related_Opportunity</name>
<label>Get Related Opportunity</label>
<locationX>182</locationX>
<locationY>278</locationY>
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
<connector>
<targetReference>Get_Membership</targetReference>
</connector>
<filterLogic>and</filterLogic>
<filters>
<field>Id</field>
<operator>EqualTo</operator>
<value>
<elementReference>Get_Opportunity_Product.OpportunityId</elementReference>
</value>
</filters>
<getFirstRecordOnly>true</getFirstRecordOnly>
<object>Opportunity</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordLookups>
<recordUpdates>
<description>Update Membership Finder Ran on Opportunity Product</description>
<name>Update_Membership_Finder_Ran_on_Opportunity_Product</name>
<label>Update Membership Finder Ran on Opportunity Product</label>
<locationX>314</locationX>
<locationY>602</locationY>
<filterLogic>and</filterLogic>
<filters>
<field>Id</field>
<operator>EqualTo</operator>
<value>
<elementReference>Get_Opportunity_Product.Id</elementReference>
</value>
</filters>
<inputAssignments>
<field>Membership_Finder_Ran__c</field>
<value>
<booleanValue>true</booleanValue>
</value>
</inputAssignments>
<object>OpportunityLineItem</object>
</recordUpdates>
<recordUpdates>
<description>Update Membership on Opportunity Product</description>
<name>Update_Membership_on_Opportunity_Product</name>
<label>Update Membership on Opportunity Product</label>
<locationX>50</locationX>
<locationY>602</locationY>
<filterLogic>and</filterLogic>
<filters>
<field>Id</field>
<operator>EqualTo</operator>
<value>
<elementReference>Get_Opportunity_Product.Id</elementReference>
</value>
</filters>
<inputAssignments>
<field>Membership__c</field>
<value>
<elementReference>Get_Membership.Id</elementReference>
</value>
</inputAssignments>
<object>OpportunityLineItem</object>
</recordUpdates>
<start>
<locationX>56</locationX>
<locationY>0</locationY>
<connector>
<targetReference>Get_Opportunity_Product</targetReference>
</connector>
<object>DPEV_Find_Membership__e</object>
<triggerType>PlatformEvent</triggerType>
</start>
<status>Active</status>
</Flow>
2 changes: 1 addition & 1 deletion sfdx-project.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"packageDirectories": [{"path": "force-app", "default": true}], "namespace": null, "sourceApiVersion": "48.0"}
{"packageDirectories": [{"path": "force-app", "default": true}], "namespace": null, "sourceApiVersion": "48.0"}