# SharinPix Import Files

The **SharinPix Import Files** component allows users to import Salesforce files onto a SharinPix album.

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-3c80bf865976710acfce8c05d0585df1615fa28c%2Fimage%20(9)%20(2).png?alt=media" alt=""><figcaption></figcaption></figure>

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-082bedea94be9ffc799a5b72bf6e7ca0f214ce17%2FScreenshot_from_2022-03-10_13-28-37%20\(1\)%20\(1\).png?alt=media)

{% hint style="info" %}
**Information:**

This feature is only available on Lightning. It can be used:

* On Page Builder
* On Desktop
  {% endhint %}

## Getting Started

To use the **SharinPix Import Files** component, you simply need to drag and drop the component from the Lightning App Builder onto your page layout.

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-101f1a19364fa14653437d54895832aed5eb8dc3%2Fimage%20(10)%20(2).png?alt=media" alt=""><figcaption></figcaption></figure>

## Lightning Component Parameters

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-548836948bdcd9811cb42b1754ae2df7b32a1ed5%2Fscreenshot-sharinpix-fsl-demo-dev-ed.lightning.force.com-2022.03.10-13_31_18%20\(1\)%20\(1\).png?alt=media)

* **Button Label:** Used to specify the button label.
* **Include Attachments:** Used to enable/disable attachment imports. ***Note:** This will consume API requests.*

## Demo

The picture below depicts the **SharinPix Import Files** component and an empty **SharinPix Album**:

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-55f0044d9750440e14113d64c9c1ba62dfecbdc7%2FScreenshot_from_2022-03-10_13-35-53%20\(1\)%20\(1\).png?alt=media)

The picture below shows the import file modal upon clicking on the **Import Salesforce Files into SharinPix Album** button:

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-082bedea94be9ffc799a5b72bf6e7ca0f214ce17%2FScreenshot_from_2022-03-10_13-28-37%20\(1\)%20\(1\).png?alt=media)

The picture below shows the import file modal with the selected files. Click on the **Import Selection** button to import the files.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-c92b54a1dbbdecc7821a28a4c9e640330b159f80%2FScreenshot_from_2022-03-10_13-38-37%20\(1\)%20\(1\).png?alt=media)

The picture below depicts the imported files on the SharinPix Album component.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-c86179413376c38b78744f52efbb795ef2aa40d9%2FScreenshot_from_2022-03-10_13-39-49%20\(1\)%20\(1\).png?alt=media)

{% hint style="warning" %}
**Note:**

For the **SharinPix Import Files component** to work, the **ImportFilesController** Apex class needs to be assigned to the users.
{% endhint %}
