# Document

The **Document Task** allows Designers to save the Valorx Fusion App as an Excel or PDF file directly to a Salesforce record, either under **Notes and Attachments** or **Files**.

## **Getting Started**

1. Click **Task** and select **Document**.
2. Choose **New Document Task**. A configuration window will open with four sections: **Location, File Format, Selection,** and **File Name**.

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2Fw9DSpNkFMq0uZ3xIzGQ2%2FDocument%20Task.gif?alt=media&#x26;token=9bcf25d6-179a-44a1-af03-099f1bcd2a1d" alt=""><figcaption></figcaption></figure>

## **Configuration Options**

**Location**\
Salesforce provides two storage options:

* **Files** – Saves the app file to Salesforce Files (recommended).
* **Notes and Attachments** – Saves to both Files and Notes & Attachments.

**File Format**\
Save the app in either **Excel (.xlsx)** or **PDF (.pdf)** format.

**Selection**\
Choose what content to save:

* **Entire Workbook** – Saves the whole workbook.
* **Custom Sheets** – Select specific sheets or portions of the workbook.

**File Name**\
Define how the file will be named in Salesforce. Options include:

* **App Name**
* **Custom Name**
* **Named Range**
* **Cell Reference**\
  You can also append a timestamp if needed.

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FyOhTCEkZPBNBKzP6OKz2%2FDocument%20Task%20-%20Configuration.gif?alt=media&#x26;token=bbab511e-32fc-4abc-8d62-9f563007d924" alt=""><figcaption></figcaption></figure>
