Skip to content

Instantly share code, notes, and snippets.

@waliasandeep
Created March 14, 2020 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waliasandeep/cc33d67ac05b287275a10100af825e12 to your computer and use it in GitHub Desktop.
Save waliasandeep/cc33d67ac05b287275a10100af825e12 to your computer and use it in GitHub Desktop.
Contacts Table Flow XML
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<assignments>
<name>Create_Row_HTML</name>
<label>Create Row HTML</label>
<locationX>315</locationX>
<locationY>211</locationY>
<assignmentItems>
<assignToReference>RowHTML</assignToReference>
<operator>Add</operator>
<value>
<stringValue>&lt;tr&gt;&lt;td&gt; &lt;div class=&quot;slds-truncate&quot;&gt;{!Contact.Name}&lt;/div&gt; &lt;/td&gt; &lt;td&gt; &lt;div class=&quot;slds-truncate&quot;&gt;{!Contact.Email}&lt;/div&gt; &lt;/td&gt; &lt;td&gt; &lt;div class=&quot;slds-truncate&quot;&gt;{!Contact.Fax}&lt;/div&gt; &lt;/td&gt;&lt;/tr&gt;</stringValue>
</value>
</assignmentItems>
<connector>
<targetReference>Loop_Contacts</targetReference>
</connector>
</assignments>
<interviewLabel>Contacts Table {!$Flow.CurrentDateTime}</interviewLabel>
<label>Contacts Table</label>
<loops>
<name>Loop_Contacts</name>
<label>Loop Contacts</label>
<locationX>308</locationX>
<locationY>50</locationY>
<assignNextValueToReference>Contact</assignNextValueToReference>
<collectionReference>Get_Contacts</collectionReference>
<iterationOrder>Asc</iterationOrder>
<nextValueConnector>
<targetReference>Create_Row_HTML</targetReference>
</nextValueConnector>
<noMoreValuesConnector>
<targetReference>Contacts_Table</targetReference>
</noMoreValuesConnector>
</loops>
<processMetadataValues>
<name>BuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>OriginBuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processType>Flow</processType>
<recordLookups>
<name>Get_Contacts</name>
<label>Get Contacts</label>
<locationX>180</locationX>
<locationY>50</locationY>
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
<connector>
<targetReference>Loop_Contacts</targetReference>
</connector>
<filters>
<field>AccountId</field>
<operator>EqualTo</operator>
<value>
<elementReference>RecordId</elementReference>
</value>
</filters>
<getFirstRecordOnly>false</getFirstRecordOnly>
<object>Contact</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordLookups>
<screens>
<name>Contacts_Table</name>
<label>Contacts Table</label>
<locationX>527</locationX>
<locationY>54</locationY>
<allowBack>true</allowBack>
<allowFinish>true</allowFinish>
<allowPause>true</allowPause>
<fields>
<name>HTML_Text</name>
<fieldText>&lt;p&gt;{!HTMLHeader}{!RowHTML}&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
<showFooter>false</showFooter>
<showHeader>true</showHeader>
</screens>
<start>
<locationX>50</locationX>
<locationY>50</locationY>
<connector>
<targetReference>Get_Contacts</targetReference>
</connector>
</start>
<status>Draft</status>
<variables>
<name>Contact</name>
<dataType>SObject</dataType>
<isCollection>false</isCollection>
<isInput>false</isInput>
<isOutput>false</isOutput>
<objectType>Contact</objectType>
</variables>
<variables>
<name>HTMLHeader</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>false</isInput>
<isOutput>false</isOutput>
<value>
<stringValue>&lt;table class=&quot;slds-table slds-table_cell-buffer slds-table_bordered&quot;&gt; &lt;thead&gt; &lt;tr class=&quot;slds-line-height_reset&quot;&gt; &lt;th class=&quot;&quot; scope=&quot;col&quot;&gt; &lt;div class=&quot;slds-truncate&quot; title=&quot;Name&quot;&gt;Name&lt;/div&gt; &lt;/th&gt; &lt;th class=&quot;&quot; scope=&quot;col&quot;&gt; &lt;div class=&quot;slds-truncate&quot; title=&quot;Email&quot;&gt;Email&lt;/div&gt; &lt;/th&gt; &lt;th class=&quot;&quot; scope=&quot;col&quot;&gt; &lt;div class=&quot;slds-truncate&quot; title=&quot;Phone&quot;&gt;Phone&lt;/div&gt; &lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr class=&quot;slds-hint-parent&quot;&gt;</stringValue>
</value>
</variables>
<variables>
<name>RecordId</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
</variables>
<variables>
<name>RowHTML</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>false</isInput>
<isOutput>false</isOutput>
</variables>
</Flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment