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

FLOW: Create a Membership Transaction After Save Flow #157

Open
wants to merge 1 commit 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<decisions>
<name>Check_Product_Mafimy_and_Membership</name>
<label>Check Product Family and Membership</label>
<locationX>182</locationX>
<locationY>242</locationY>
<defaultConnectorLabel>Default Outcome</defaultConnectorLabel>
<rules>
<name>Check_Product_Family_and_Membership</name>
<conditionLogic>and</conditionLogic>
<conditions>
<leftValueReference>Get_Opportunity_Line_Item.Product2.Family</leftValueReference>
<operator>EqualTo</operator>
<rightValue>
<stringValue>Membership</stringValue>
</rightValue>
</conditions>
<conditions>
<leftValueReference>Get_Opportunity_Line_Item.Membership__c</leftValueReference>
<operator>IsNull</operator>
<rightValue>
<booleanValue>true</booleanValue>
</rightValue>
</conditions>
<connector>
<targetReference>Membership_Transaction_Business_Process_Event</targetReference>
</connector>
<label>Check Product Family and Membership</label>
</rules>
</decisions>
<environments>Default</environments>
<interviewLabel>Opportunity Line Item - After - Membership {!$Flow.CurrentDateTime}</interviewLabel>
<label>Opportunity Line Item - After - Membership</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>
<recordCreates>
<name>Membership_Transaction_Business_Process_Event</name>
<label>Membership Transaction Business Process Event</label>
<locationX>50</locationX>
<locationY>350</locationY>
<inputAssignments>
<field>Record_Id__c</field>
<value>
<booleanValue>true</booleanValue>
</value>
</inputAssignments>
<object>BPEV_Membership_Transaction__e</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordCreates>
<recordLookups>
<name>Get_Opportunity_Line_Item</name>
<label>Get Opportunity Line Item</label>
<locationX>182</locationX>
<locationY>134</locationY>
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
<connector>
<targetReference>Check_Product_Mafimy_and_Membership</targetReference>
</connector>
<getFirstRecordOnly>true</getFirstRecordOnly>
<object>OpportunityLineItem</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordLookups>
<start>
<locationX>56</locationX>
<locationY>0</locationY>
<connector>
<targetReference>Get_Opportunity_Line_Item</targetReference>
</connector>
</start>
<status>Draft</status>
</Flow>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
<deploymentStatus>Deployed</deploymentStatus>
<eventType>HighVolume</eventType>
<label>BPEV - Membership Transaction</label>
<pluralLabel>BPEV - Membership Transactions</pluralLabel>
<publishBehavior>PublishAfterCommit</publishBehavior>
</CustomObject>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Record_Id__c</fullName>
<externalId>false</externalId>
<isFilteringDisabled>false</isFilteringDisabled>
<isNameField>false</isNameField>
<isSortingDisabled>false</isSortingDisabled>
<label>Record Id</label>
<length>20</length>
<required>false</required>
<type>Text</type>
<unique>false</unique>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<StandardValueSet xmlns="http://soap.sforce.com/2006/04/metadata">
<sorted>false</sorted>
<standardValue>
<fullName>None</fullName>
<default>false</default>
<label>None</label>
</standardValue>
<standardValue>
<fullName>Membership</fullName>
<default>false</default>
<label>Membership</label>
</standardValue>
</StandardValueSet>