Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Minor Updates
Browse files Browse the repository at this point in the history
1. A new flow to get access details without having to email for copy and paste say into Slack
2. A general background image as default in a new board.
  • Loading branch information
Eric Schultz committed Jul 23, 2021
1 parent b694619 commit 11e1d67
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>52.0</apiVersion>
<formulas>
<name>BaseUrl_Formula</name>
<dataType>String</dataType>
<expression>LEFT({!$Api.Enterprise_Server_URL_520}, FIND(&quot;.com/&quot;,{!$Api.Enterprise_Server_URL_520})+3)</expression>
</formulas>
<interviewLabel>Get Swim Lane Access Details {!$Flow.CurrentDateTime}</interviewLabel>
<label>Get Swim Lane Access Details</label>
<processMetadataValues>
<name>BuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>CanvasMode</name>
<value>
<stringValue>FREE_FORM_CANVAS</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>OriginBuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processType>Flow</processType>
<recordLookups>
<name>KickboardSetting_GetRecord</name>
<label>KickboardSetting_GetRecord</label>
<locationX>176</locationX>
<locationY>332</locationY>
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
<connector>
<targetReference>Urls_Screen</targetReference>
</connector>
<filterLogic>and</filterLogic>
<filters>
<field>SetupOwnerId</field>
<operator>EqualTo</operator>
<value>
<elementReference>$Organization.Id</elementReference>
</value>
</filters>
<getFirstRecordOnly>true</getFirstRecordOnly>
<object>Kickboard_Settings__c</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordLookups>
<recordLookups>
<name>SwimLane_GetRecord</name>
<label>SwimLane GetRecord</label>
<locationX>176</locationX>
<locationY>195</locationY>
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
<connector>
<targetReference>KickboardSetting_GetRecord</targetReference>
</connector>
<filterLogic>and</filterLogic>
<filters>
<field>Id</field>
<operator>EqualTo</operator>
<value>
<elementReference>recordId</elementReference>
</value>
</filters>
<getFirstRecordOnly>true</getFirstRecordOnly>
<object>Lane__c</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordLookups>
<screens>
<name>Urls_Screen</name>
<label>Urls Screen</label>
<locationX>174</locationX>
<locationY>499</locationY>
<allowBack>true</allowBack>
<allowFinish>true</allowFinish>
<allowPause>true</allowPause>
<fields>
<name>Urls_DisplayText</name>
<fieldText>&lt;p&gt;Copy and paste these details based on type of user.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 14px;&quot;&gt;Internal Users&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;i style=&quot;font-size: 12px;&quot;&gt;Make sure you&apos;ve added these users before sharing details.&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;{!SwimLane_GetRecord.Name}&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;{!BaseUrl_Formula}/{!SwimLane_GetRecord.Id}&quot; rel=&quot;noopener noreferrer&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;{!BaseUrl_Formula}/{!SwimLane_GetRecord.Id}&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
<fields>
<name>CommunityUser_DisplayText</name>
<fieldText>&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 14px;&quot;&gt;Community Users&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;&lt;span class=&quot;ql-cursor&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;i style=&quot;font-size: 12px; background-color: rgb(255, 255, 255); color: rgb(62, 62, 60);&quot;&gt;Make sure you&apos;ve added these users before sharing details.&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;{!SwimLane_GetRecord.Name}&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;{!KickboardSetting_GetRecord.Community_Url__c}/lane/{!SwimLane_GetRecord.Id}&quot; rel=&quot;noopener noreferrer&quot; target=&quot;_blank&quot; style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;{!KickboardSetting_GetRecord.Community_Url__c}/lane/{!SwimLane_GetRecord.Id}&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
<visibilityRule>
<conditionLogic>and</conditionLogic>
<conditions>
<leftValueReference>KickboardSetting_GetRecord.Community_Url__c</leftValueReference>
<operator>IsNull</operator>
<rightValue>
<booleanValue>false</booleanValue>
</rightValue>
</conditions>
</visibilityRule>
</fields>
<fields>
<name>Guest_DisplayText</name>
<fieldText>&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: 14px;&quot;&gt;Guest Users&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;i style=&quot;font-size: 12px;&quot;&gt;Make sure the board is marked &lt;/i&gt;&lt;b style=&quot;font-size: 12px;&quot;&gt;&lt;i&gt;public&lt;/i&gt;&lt;/b&gt;&lt;i style=&quot;font-size: 12px;&quot;&gt; before sending these details.&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;{!SwimLane_GetRecord.Name}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;{!KickboardSetting_GetRecord.Guest_Url__c}/lane/{!SwimLane_GetRecord.Id}&quot; rel=&quot;noopener noreferrer&quot; target=&quot;_blank&quot; style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;{!KickboardSetting_GetRecord.Guest_Url__c}/lane/{!SwimLane_GetRecord.Id}&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;The super secret code is&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;{!SwimLane_GetRecord.Code__c}&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;i style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;Do not share these details with anyone else.&lt;/i&gt;&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
<visibilityRule>
<conditionLogic>and</conditionLogic>
<conditions>
<leftValueReference>KickboardSetting_GetRecord.Guest_Url__c</leftValueReference>
<operator>IsNull</operator>
<rightValue>
<booleanValue>false</booleanValue>
</rightValue>
</conditions>
</visibilityRule>
</fields>
<showFooter>true</showFooter>
<showHeader>false</showHeader>
</screens>
<start>
<locationX>50</locationX>
<locationY>50</locationY>
<connector>
<targetReference>SwimLane_GetRecord</targetReference>
</connector>
</start>
<status>Active</status>
<variables>
<name>recordId</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
</variables>
</Flow>
39 changes: 38 additions & 1 deletion force-app/main/default/flows/Modify_Users.flow-meta.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>52.0</apiVersion>
<isTemplate>true</isTemplate>
<choices>
<name>ActivateUserChoice</name>
<choiceText>Activate Users</choiceText>
Expand All @@ -18,6 +17,14 @@
<stringValue>Add a User to this Swim Lane</stringValue>
</value>
</choices>
<choices>
<name>GetSwimLaneAccessDetails_Choice</name>
<choiceText>Get Swim Lane Access Details</choiceText>
<dataType>String</dataType>
<value>
<stringValue>Get Swim Lane Access Details</stringValue>
</value>
</choices>
<choices>
<name>RemoveUserFromSwimLane_Choice</name>
<choiceText>Remove User from Swim Lane</choiceText>
Expand Down Expand Up @@ -100,8 +107,24 @@
</connector>
<label>OutcomeIs RemoveUserFromSwimLane</label>
</rules>
<rules>
<name>OutcomeIs_GetSwimLaneAccessDetails</name>
<conditionLogic>and</conditionLogic>
<conditions>
<leftValueReference>Action_Picklist</leftValueReference>
<operator>EqualTo</operator>
<rightValue>
<elementReference>GetSwimLaneAccessDetails_Choice</elementReference>
</rightValue>
</conditions>
<connector>
<targetReference>GetSwimLaneAccessDetails_Subflow</targetReference>
</connector>
<label>OutcomeIs GetSwimLaneAccessDetails</label>
</rules>
</decisions>
<interviewLabel>Modify Users {!$Flow.CurrentDateTime}</interviewLabel>
<isTemplate>true</isTemplate>
<label>Modify Users</label>
<processMetadataValues>
<name>BuilderType</name>
Expand Down Expand Up @@ -139,6 +162,7 @@
<choiceReferences>AddUserToSwimLaneChoice</choiceReferences>
<choiceReferences>SendEmailToUserChoice</choiceReferences>
<choiceReferences>RemoveUserFromSwimLane_Choice</choiceReferences>
<choiceReferences>GetSwimLaneAccessDetails_Choice</choiceReferences>
<dataType>String</dataType>
<fieldText>Select an action</fieldText>
<fieldType>DropdownBox</fieldType>
Expand Down Expand Up @@ -181,6 +205,19 @@
</value>
</inputAssignments>
</subflows>
<subflows>
<name>GetSwimLaneAccessDetails_Subflow</name>
<label>GetSwimLaneAccessDetails Subflow</label>
<locationX>169</locationX>
<locationY>532</locationY>
<flowName>Get_Swim_Lane_Access_Details</flowName>
<inputAssignments>
<name>recordId</name>
<value>
<elementReference>recordId</elementReference>
</value>
</inputAssignments>
</subflows>
<subflows>
<name>RemoveUserFromSwimLane_Subflow</name>
<label>RemoveUserFromSwimLane Subflow</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
<formulas>
<name>BaseUrl_Formula</name>
<dataType>String</dataType>
<expression>LEFT({!$Api.Enterprise_Server_URL_520}, FIND(&quot;.com/&quot;,{!$Api.Partner_Server_URL_140})+3)</expression>
<expression>LEFT({!$Api.Enterprise_Server_URL_520}, FIND(&quot;.com/&quot;,{!$Api.Enterprise_Server_URL_520})+3)</expression>
</formulas>
<interviewLabel>Send Email to User Action {!$Flow.CurrentDateTime}</interviewLabel>
<isTemplate>true</isTemplate>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Background_Image__c</fullName>
<defaultValue>&quot;/kickboard__Kickboard_Assets/general.png&quot;</defaultValue>
<description>A Swim Lane can have a background image as a guide. Commonly, these images will be uploaded in static resources and referenced as /resource/STATIC_RESOURCE/IMAGE.png

Images can be any size, but, we recommed 1280x720 which fit well into presentations.</description>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 11e1d67

Please sign in to comment.