Display a list of records with corresponding SharinPix albums (Developer-oriented)
In this article, we will demonstrate how to implement a Lightning component that will:
Display a list of records
Display the corresponding SharinPix album of the record selected from the list
You can rely on the following GitHub entry to deploy and try the given sample on your Salesforce organisations: https://github.com/SharinPix/demo-apex/tree/list_case_album
Information:
We will use the Case object throughout this demo.
The component presented in this article displays a list of Case records available on your organisation. By selecting a record entry from the list, the corresponding SharinPix album will be made available as shown in the example below:

For this implementation, you will need:
an Apex Class Controller that will query the Case records as well as generate the album's parameters and URL.
a Lightning Component to display the list of Case records and use an Iframe to embed the SharinPix album.
Apex Class Controller
The Apex Class Controller's implementation can be found below:
The method below (extracted from the Apex Class Controller) demonstrates how the album's parameters and URL are generated:
Lightning Component
The Lightning Component's implementation is found below:
The following code snippet demonstrate how the SharinPix album's URL is embedded inside an Iframe:
The Lightning Component Controller's is found below:
Once the implementation is done on your Salesforce organisation, go ahead and try the component by adding the same on any page record.
Last updated

