> For the complete documentation index, see [llms.txt](https://docs.sharinpix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sharinpix.com/documentation/lightning-web-component/sharinpix-import-files.md).

# 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sharinpix.com/documentation/lightning-web-component/sharinpix-import-files.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
