Skip to content

Commit

Permalink
Merge pull request #292 from CodeScience/SFIL-13
Browse files Browse the repository at this point in the history
Complete SFIL-13.
  • Loading branch information
cidarm authored Apr 5, 2022
2 parents 3a52b75 + 9e8149b commit fb36dc0
Show file tree
Hide file tree
Showing 3 changed files with 375 additions and 0 deletions.
250 changes: 250 additions & 0 deletions force-app/main/default/flows/Refer_Flow.flow-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>49.0</apiVersion>
<assignments>
<name>Set_Create_Contact_Id</name>
<label>Set Create Contact Id</label>
<locationX>314</locationX>
<locationY>638</locationY>
<assignmentItems>
<assignToReference>selectedContactId</assignToReference>
<operator>Assign</operator>
<value>
<elementReference>Create_Contact_Record</elementReference>
</value>
</assignmentItems>
<connector>
<targetReference>Send_Referral</targetReference>
</connector>
</assignments>
<assignments>
<name>Set_Lookup_Contact_Id</name>
<label>Set Lookup Contact Id</label>
<locationX>50</locationX>
<locationY>398</locationY>
<assignmentItems>
<assignToReference>selectedContactId</assignToReference>
<operator>Assign</operator>
<value>
<elementReference>Contact_Lookup.recordId</elementReference>
</value>
</assignmentItems>
<connector>
<targetReference>Send_Referral</targetReference>
</connector>
</assignments>
<constants>
<name>ContactId</name>
<dataType>String</dataType>
<value>
<stringValue>0030t000019UwP3AAK</stringValue>
</value>
</constants>
<decisions>
<name>Contact_Selected</name>
<label>Contact Selected?</label>
<locationX>182</locationX>
<locationY>278</locationY>
<defaultConnector>
<targetReference>Create_Contact</targetReference>
</defaultConnector>
<defaultConnectorLabel>Default Outcome</defaultConnectorLabel>
<rules>
<name>Yes</name>
<conditionLogic>and</conditionLogic>
<conditions>
<leftValueReference>Contact_Lookup.recordId</leftValueReference>
<operator>NotEqualTo</operator>
</conditions>
<connector>
<targetReference>Set_Lookup_Contact_Id</targetReference>
</connector>
<label>Yes</label>
</rules>
</decisions>
<interviewLabel>Refer Flow {!$Flow.CurrentDateTime}</interviewLabel>
<label>Refer 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>Flow</processType>
<recordCreates>
<name>Create_Contact_Record</name>
<label>Create Contact Record</label>
<locationX>314</locationX>
<locationY>518</locationY>
<connector>
<targetReference>Set_Create_Contact_Id</targetReference>
</connector>
<inputAssignments>
<field>Email</field>
<value>
<elementReference>Email.value</elementReference>
</value>
</inputAssignments>
<inputAssignments>
<field>FirstName</field>
<value>
<elementReference>First_Name</elementReference>
</value>
</inputAssignments>
<inputAssignments>
<field>LastName</field>
<value>
<elementReference>Last_Name</elementReference>
</value>
</inputAssignments>
<inputAssignments>
<field>MobilePhone</field>
<value>
<elementReference>Mobile.value</elementReference>
</value>
</inputAssignments>
<object>Contact</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordCreates>
<screens>
<name>Contact_Selection</name>
<label>Contact Selection</label>
<locationX>182</locationX>
<locationY>158</locationY>
<allowBack>true</allowBack>
<allowFinish>true</allowFinish>
<allowPause>true</allowPause>
<connector>
<targetReference>Contact_Selected</targetReference>
</connector>
<fields>
<name>Contact_Lookup</name>
<extensionName>flowruntime:lookup</extensionName>
<fieldType>ComponentInstance</fieldType>
<inputParameters>
<name>fieldApiName</name>
<value>
<stringValue>Contact__c</stringValue>
</value>
</inputParameters>
<inputParameters>
<name>label</name>
<value>
<stringValue>Contact</stringValue>
</value>
</inputParameters>
<inputParameters>
<name>objectApiName</name>
<value>
<stringValue>Referral__c</stringValue>
</value>
</inputParameters>
<isRequired>true</isRequired>
<storeOutputAutomatically>true</storeOutputAutomatically>
</fields>
<showFooter>true</showFooter>
<showHeader>true</showHeader>
</screens>
<screens>
<name>Create_Contact</name>
<label>Create Contact</label>
<locationX>314</locationX>
<locationY>398</locationY>
<allowBack>true</allowBack>
<allowFinish>true</allowFinish>
<allowPause>true</allowPause>
<connector>
<targetReference>Create_Contact_Record</targetReference>
</connector>
<fields>
<name>First_Name</name>
<dataType>String</dataType>
<fieldText>First Name</fieldText>
<fieldType>InputField</fieldType>
<isRequired>false</isRequired>
</fields>
<fields>
<name>Last_Name</name>
<dataType>String</dataType>
<fieldText>Last Name</fieldText>
<fieldType>InputField</fieldType>
<isRequired>true</isRequired>
</fields>
<fields>
<name>Email</name>
<extensionName>flowruntime:email</extensionName>
<fieldType>ComponentInstance</fieldType>
<isRequired>true</isRequired>
<storeOutputAutomatically>true</storeOutputAutomatically>
</fields>
<fields>
<name>Mobile</name>
<extensionName>flowruntime:phone</extensionName>
<fieldType>ComponentInstance</fieldType>
<inputParameters>
<name>label</name>
<value>
<stringValue>Mobile</stringValue>
</value>
</inputParameters>
<isRequired>true</isRequired>
<storeOutputAutomatically>true</storeOutputAutomatically>
</fields>
<showFooter>true</showFooter>
<showHeader>true</showHeader>
</screens>
<start>
<locationX>56</locationX>
<locationY>0</locationY>
<connector>
<targetReference>Contact_Selection</targetReference>
</connector>
</start>
<status>Active</status>
<subflows>
<name>Send_Referral</name>
<label>Send Referral</label>
<locationX>182</locationX>
<locationY>854</locationY>
<flowName>Send_Referral_Flow</flowName>
<inputAssignments>
<name>contactId</name>
<value>
<elementReference>selectedContactId</elementReference>
</value>
</inputAssignments>
<inputAssignments>
<name>serviceId</name>
<value>
<elementReference>recordId</elementReference>
</value>
</inputAssignments>
<storeOutputAutomatically>true</storeOutputAutomatically>
</subflows>
<variables>
<name>recordId</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
</variables>
<variables>
<name>selectedContactId</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>false</isInput>
<isOutput>false</isOutput>
</variables>
</Flow>
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,124 @@
<layoutColumns />
<style>CustomLinks</style>
</layoutSections>
<platformActionList>
<actionListContext>Record</actionListContext>
<platformActionListItems>
<actionName>Service__c.Refer</actionName>
<actionType>QuickAction</actionType>
<sortOrder>0</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>FeedItem.TextPost</actionName>
<actionType>QuickAction</actionType>
<sortOrder>1</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>FeedItem.ContentPost</actionName>
<actionType>QuickAction</actionType>
<sortOrder>2</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewEvent</actionName>
<actionType>QuickAction</actionType>
<sortOrder>3</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewTask</actionName>
<actionType>QuickAction</actionType>
<sortOrder>4</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewContact</actionName>
<actionType>QuickAction</actionType>
<sortOrder>5</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>LogACall</actionName>
<actionType>QuickAction</actionType>
<sortOrder>6</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewOpportunity</actionName>
<actionType>QuickAction</actionType>
<sortOrder>7</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewCase</actionName>
<actionType>QuickAction</actionType>
<sortOrder>8</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewLead</actionName>
<actionType>QuickAction</actionType>
<sortOrder>9</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>FeedItem.RypplePost</actionName>
<actionType>QuickAction</actionType>
<sortOrder>10</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>FeedItem.LinkPost</actionName>
<actionType>QuickAction</actionType>
<sortOrder>11</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>FeedItem.PollPost</actionName>
<actionType>QuickAction</actionType>
<sortOrder>12</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>FeedItem.QuestionPost</actionName>
<actionType>QuickAction</actionType>
<sortOrder>13</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>RecordShareHierarchy</actionName>
<actionType>StandardButton</actionType>
<sortOrder>14</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>Share</actionName>
<actionType>StandardButton</actionType>
<sortOrder>15</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>ChangeRecordType</actionName>
<actionType>StandardButton</actionType>
<sortOrder>16</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>ChangeOwnerOne</actionName>
<actionType>StandardButton</actionType>
<sortOrder>17</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>PrintableView</actionName>
<actionType>StandardButton</actionType>
<sortOrder>18</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>Edit</actionName>
<actionType>StandardButton</actionType>
<sortOrder>19</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>Clone</actionName>
<actionType>StandardButton</actionType>
<sortOrder>20</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>Submit</actionName>
<actionType>StandardButton</actionType>
<sortOrder>21</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>Delete</actionName>
<actionType>StandardButton</actionType>
<sortOrder>22</sortOrder>
</platformActionListItems>
</platformActionList>
<relatedLists>
<fields>NAME</fields>
<fields>Contact__c</fields>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<QuickAction xmlns="http://soap.sforce.com/2006/04/metadata">
<flowDefinition>Refer_Flow</flowDefinition>
<label>Refer</label>
<optionsCreateFeedItem>false</optionsCreateFeedItem>
<type>Flow</type>
</QuickAction>

0 comments on commit fb36dc0

Please sign in to comment.