# Viewing Files

When a record is associated with files in Salesforce, GRAX will render a section named "Files" to represent them, showing their name and size - as well as buttons to view and download them:

<figure><img src="/files/xhNm3ELh41t6mDiDeLtE" alt=""><figcaption><p>Files Graph Breakdown</p></figcaption></figure>

This shows up for records of objects that contain files:

* `Attachment`
* `ContentVersion`
* `EventLogFile`

As well as records associated with them, be it via the `Attachment` reference or via a `ContentDocumentLink` . This means if you're looking at an email that has attachments, the corresponding files should show up right there.

Internally, files are stored in the provided bucket under:

```
grax/audittrail/salesforce/$ORG_ID/$OBJECT/$RECORD_ID/files/$RECORD_ID
```

You can also use the [GRAX API to view files related to a record and download their contents](https://api.grax.com/#tag/record-files).


---

# 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://documentation.grax.com/protect-data/backup/viewing-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.
