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

Commit 70e2d32

Browse files
author
Eric Schultz
committed
Bug Fix
1. Owners of Swim Lanes could not share to internal users nor use any action that required access to custom setting 2. Updated flows to explain must be owner of swim lane to share with internal users. 3. project updated to include namespace
1 parent 4796d1a commit 70e2d32

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

force-app/main/default/flows/Get_Swim_Lane_Access_Details.flow-meta.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<isTemplate>true</isTemplate>
43
<apiVersion>52.0</apiVersion>
54
<formulas>
65
<name>BaseUrl_Formula</name>
76
<dataType>String</dataType>
87
<expression>LEFT({!$Api.Enterprise_Server_URL_520}, FIND(&quot;.com/&quot;,{!$Api.Enterprise_Server_URL_520})+3)</expression>
98
</formulas>
109
<interviewLabel>Get Swim Lane Access Details {!$Flow.CurrentDateTime}</interviewLabel>
10+
<isTemplate>true</isTemplate>
1111
<label>Get Swim Lane Access Details</label>
1212
<processMetadataValues>
1313
<name>BuilderType</name>
@@ -100,7 +100,7 @@
100100
</fields>
101101
<fields>
102102
<name>Guest_DisplayText</name>
103-
<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>
103+
<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;span style=&quot;font-size: 12px; background-color: rgb(255, 255, 255); color: rgb(62, 62, 60);&quot;&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;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>
104104
<fieldType>DisplayText</fieldType>
105105
<visibilityRule>
106106
<conditionLogic>and</conditionLogic>

force-app/main/default/flows/Modify_Users.flow-meta.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@
168168
<fieldType>DropdownBox</fieldType>
169169
<isRequired>false</isRequired>
170170
</fields>
171+
<fields>
172+
<name>ModfyUserNote_DisplayText</name>
173+
<fieldText>&lt;p&gt;Please note when sharing to an internal user (i.e. not a guest), only the owner of the record can share the record.&lt;/p&gt;</fieldText>
174+
<fieldType>DisplayText</fieldType>
175+
</fields>
171176
<showFooter>true</showFooter>
172177
<showHeader>false</showHeader>
173178
</screens>

force-app/main/default/permissionsets/Kickboard_Admin.permissionset-meta.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
<enabled>true</enabled>
1717
<name>Kickboard_Admin</name>
1818
</customPermissions>
19+
<customSettingAccesses>
20+
<enabled>true</enabled>
21+
<name>Kickboard_Settings__c</name>
22+
</customSettingAccesses>
1923
<fieldPermissions>
2024
<editable>true</editable>
2125
<field>Board__c.Background_Image__c</field>

force-app/main/default/permissionsets/Kickboard_User.permissionset-meta.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
<apexClass>KickboardDataInitCtrl</apexClass>
1313
<enabled>true</enabled>
1414
</classAccesses>
15+
<customSettingAccesses>
16+
<enabled>true</enabled>
17+
<name>Kickboard_Settings__c</name>
18+
</customSettingAccesses>
1519
<fieldPermissions>
1620
<editable>true</editable>
1721
<field>Board__c.Background_Image__c</field>

sfdx-project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"name": "kickboard",
13-
"namespace": "",
13+
"namespace": "kickboard",
1414
"sfdcLoginUrl": "https://login.salesforce.com",
1515
"sourceApiVersion": "52.0",
1616
"packageAliases": {

0 commit comments

Comments
 (0)