Skip to content
This repository was archived by the owner on Jan 27, 2024. It is now read-only.
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
13 changes: 13 additions & 0 deletions .forceignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
#

package.xml
**profiles

# LWC configuration files
**/jsconfig.json
**/.eslintrc.json

# LWC Jest
**/__tests__/**
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ See files shared to all related records on one page in Lightning.

This project provides a Lightning Component you can drag on to your Lightning Record Pages in App Builder.

![screen shot](images/related-files-example.png)
![screen shot](../assets/images/related-files-example.png?raw=true)

Background
----------
Expand All @@ -29,20 +29,20 @@ However, this "rollup" of Classic Attachments is a much beloved feature and cust
[Keri-An Richards](https://www.linkedin.com/in/keri-an-richards-44270810/) took to the IdeaExchange and submitted
[Roll up display of Notes and Attachments in Lightning as it was in Classic](https://success.salesforce.com/ideaView?id=08730000000cHYhAAM).

[![screen shot](images/keri-an-richards.png)](https://success.salesforce.com/ideaView?id=08730000000cHYhAAM)
[![screen shot](../assets/images/keri-an-richards.png?raw=true)](https://success.salesforce.com/ideaView?id=08730000000cHYhAAM)

Others, like [Abi Beaty](https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009SE1&fId=0D53A000037sJDC)
and [Hilary Henderson](https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009SE1&fId=0D53A00003Bs5Tk),
have also inquired on the Success Community how to get this rollup feature in Lightning.

[![screen shot](images/abi-beaty.png)](https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009SE1&fId=0D53A000037sJDC)
[![screen shot](../assets/images/abi-beaty.png?raw=true)](https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009SE1&fId=0D53A000037sJDC)

[![screen shot](images/hilary-henderson.png)](https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009SE1&fId=0D53A00003Bs5Tk)
[![screen shot](../assets/images/hilary-henderson.png?raw=true)](https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009SE1&fId=0D53A00003Bs5Tk)

Seeing a need I began developing this app. After [sharing a sneak peek](https://twitter.com/DouglasCAyers/status/900277146668728320) on Twitter,
[Haris Ikram](https://twitter.com/HarisIkramH), Product Manager for Salesforce, commented that such a solution is in demand and happy to share this with the Salesforce Lightning Team.

[![screen shot](images/haris-ikram.png)](https://twitter.com/HarisIkramH/status/901074270524104704)
[![screen shot](../assets/images/haris-ikram.png?raw=true)](https://twitter.com/HarisIkramH/status/901074270524104704)

---

Expand Down Expand Up @@ -80,7 +80,7 @@ Getting Started

Check out this 7 minute setup and how-to video:

[![screen shot](images/youtube-cover.png)](https://www.youtube.com/watch?v=14CyPXDxHNI)
[![screen shot](../assets/images/youtube-cover.png?raw=true)](https://www.youtube.com/watch?v=14CyPXDxHNI)

Recommendations
---------------
Expand Down Expand Up @@ -121,7 +121,7 @@ then navigate to the lookup field that points to the parent object (that is the
On the field's detail page you'll see the field label, field name, and the child relationship name (use this value in App Bulider).
If this is a custom lookup or master-detail field then [you will need to append `__r` to the child relationship name](https://github.com/DouglasCAyers/sfdc-related-files-lightning/issues/13).

![screen shot](images/setup-child-relationship-field-name.png)
![screen shot](../assets/images/setup-child-relationship-field-name.png?raw=true)

What do the badge counts mean in the vertical navigation?
---------------------------------------------------------
Expand All @@ -132,7 +132,7 @@ For example, if the single file "Hello.txt" is shared to 3 contacts related to t
when viewing this **Related Files** lightning component on that account page would display the badge count 1
for the `Contacts` relationship even though 3 contacts exist because only 1 unique file was shared among them.

![screen shot](images/related-files-badge-counts.png)
![screen shot](../assets/images/related-files-badge-counts.png?raw=true)

How do I use this app in Classic?
---------------------------------
Expand Down
5 changes: 5 additions & 0 deletions config/project-scratch-def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"orgName": "Related Files in Lightning",
"edition": "Developer",
"features": []
}
16 changes: 16 additions & 0 deletions force-app/main/default/lwc/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"baseUrl": ".",
"paths": {}
},
"include": [
"**/*",
"../../../../.sfdx/typings/lwc/**/*.d.ts"
],
"typeAcquisition": {
"include": [
"jest"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>View_Related_Files</fullName>
<availability>online</availability>
<displayType>button</displayType>
<encodingKey>UTF-8</encodingKey>
<height>600</height>
<linkType>url</linkType>
<masterLabel>View Related Files</masterLabel>
<openType>sidebar</openType>
<protected>false</protected>
<url>/apex/CF_ChildFilesPage?id={!Account.Id}</url>
</WebLink>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>View_Related_Files</fullName>
<availability>online</availability>
<displayType>button</displayType>
<encodingKey>UTF-8</encodingKey>
<height>600</height>
<linkType>url</linkType>
<masterLabel>View Related Files</masterLabel>
<openType>sidebar</openType>
<protected>false</protected>
<url>/apex/CF_ChildFilesPage?id={!Campaign.Id}</url>
</WebLink>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>View_Related_Files</fullName>
<availability>online</availability>
<displayType>button</displayType>
<encodingKey>UTF-8</encodingKey>
<height>600</height>
<linkType>url</linkType>
<masterLabel>View Related Files</masterLabel>
<openType>sidebar</openType>
<protected>false</protected>
<url>/apex/CF_ChildFilesPage?id={!Case.Id}</url>
</WebLink>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>View_Related_Files</fullName>
<availability>online</availability>
<displayType>button</displayType>
<encodingKey>UTF-8</encodingKey>
<height>600</height>
<linkType>url</linkType>
<masterLabel>View Related Files</masterLabel>
<openType>sidebar</openType>
<protected>false</protected>
<url>/apex/CF_ChildFilesPage?id={!Contact.Id}</url>
</WebLink>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>View_Related_Files</fullName>
<availability>online</availability>
<displayType>button</displayType>
<encodingKey>UTF-8</encodingKey>
<height>600</height>
<linkType>url</linkType>
<masterLabel>View Related Files</masterLabel>
<openType>sidebar</openType>
<protected>false</protected>
<url>/apex/CF_ChildFilesPage?id={!Contract.Id}</url>
</WebLink>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>View_Related_Files</fullName>
<availability>online</availability>
<displayType>button</displayType>
<encodingKey>UTF-8</encodingKey>
<height>600</height>
<linkType>url</linkType>
<masterLabel>View Related Files</masterLabel>
<openType>sidebar</openType>
<protected>false</protected>
<url>/apex/CF_ChildFilesPage?id={!Lead.Id}</url>
</WebLink>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>View_Related_Files</fullName>
<availability>online</availability>
<displayType>button</displayType>
<encodingKey>UTF-8</encodingKey>
<height>600</height>
<linkType>url</linkType>
<masterLabel>View Related Files</masterLabel>
<openType>sidebar</openType>
<protected>false</protected>
<url>/apex/CF_ChildFilesPage?id={!Opportunity.Id}</url>
</WebLink>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>View_Related_Files</fullName>
<availability>online</availability>
<displayType>button</displayType>
<encodingKey>UTF-8</encodingKey>
<height>600</height>
<linkType>url</linkType>
<masterLabel>View Related Files</masterLabel>
<openType>sidebar</openType>
<protected>false</protected>
<url>/apex/CF_ChildFilesPage?id={!Order.Id}</url>
</WebLink>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<apiVersion>45.0</apiVersion>
<availableInTouch>true</availableInTouch>
<confirmationTokenRequired>false</confirmationTokenRequired>
<description>Allows users to use the &quot;Related Files&quot; Lightning component within Classic UI. Grant users access to the page via a profile or permission set, then create a link to it passing in the parent record&apos;s id, like &apos;/apex/CF_ChildFilesPage?id={!Account.Id}&apos;.</description>
<description>Allows users to use the &quot;Related Files&quot; Lightning component within Classic UI. Grant users access to the page via a profile or permission set, then create a link to it passing in the parent record&#39;s id, like &#39;/apex/CF_ChildFilesPage?id={!Account.Id}&#39;.</description>
<label>CF_ChildFilesPage</label>
</ApexPage>
Binary file removed images/abi-beaty.png
Binary file not shown.
Binary file removed images/haris-ikram.png
Binary file not shown.
Binary file removed images/hilary-henderson.png
Binary file not shown.
Binary file removed images/keri-an-richards.png
Binary file not shown.
Binary file removed images/related-files-badge-counts.png
Binary file not shown.
Binary file removed images/related-files-duplicate-labels.png
Binary file not shown.
Binary file removed images/related-files-example.png
Binary file not shown.
Binary file removed images/related-files-left-nav.png
Binary file not shown.
Binary file removed images/setup-add-files-related-list.png
Binary file not shown.
Binary file removed images/setup-child-relationship-field-name.png
Binary file not shown.
Binary file removed images/setup-gear-edit-page.png
Binary file not shown.
Binary file removed images/youtube-cover.png
Binary file not shown.
11 changes: 11 additions & 0 deletions sfdx-project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"packageDirectories": [
{
"path": "force-app",
"default": true
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "48.0"
}
68 changes: 0 additions & 68 deletions src/classes/CF_ChildFilesFieldSetDynamicPicklistTest.cls

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions src/objects/Account.object

This file was deleted.

14 changes: 0 additions & 14 deletions src/objects/Campaign.object

This file was deleted.

14 changes: 0 additions & 14 deletions src/objects/Case.object

This file was deleted.

14 changes: 0 additions & 14 deletions src/objects/Contact.object

This file was deleted.

14 changes: 0 additions & 14 deletions src/objects/Contract.object

This file was deleted.

14 changes: 0 additions & 14 deletions src/objects/Lead.object

This file was deleted.

Loading