# 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="/files/gP8c8DnXvRFnzdx1EsQi" 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="/files/Buf0fK783EKWxz5ECrZU" alt=""><figcaption></figcaption></figure>


---

# 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.valorx.com/valorx-fusion/design-studio/tasks/document.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.
