# SharinPix Import Files

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

<figure><img src="/files/xz5OZu29Fom3szLCx3pX" alt=""><figcaption></figcaption></figure>

![](/files/F3hgNsqpU9rjKh2M6Oe1)

{% 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="/files/stBtQtnLKfI4wfvC3t51" alt=""><figcaption></figcaption></figure>

## Lightning Component Parameters

![](/files/SYLx4h2pYaS5kUzrVQ0F)

* **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**:

![](/files/FepnX2nsEcreFK6BUSYR)

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

![](/files/F3hgNsqpU9rjKh2M6Oe1)

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

![](/files/wbz2qxmoKawMwqZc1zKN)

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

![](/files/gBjXeB8NLd2bKGUV33Sn)

{% 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
