For the complete documentation index, see llms.txt. This page is also available as Markdown.

Download

Let users download a file directly from an Avonni component — from a direct URL or a Salesforce file (Content Document) — without leaving the page.

Overview

The Download Interaction allows users to retrieve files directly from Avonni components (like Data Tables or Lists) within an Experience Site. This streamlines the user journey by eliminating the need to navigate to or visit record pages or file libraries to access important documents.


Configuration

To enable file downloads within your Experience Site, follow these steps:

1

Prepare Your Component

Add an Avonni Data Table or List to your Experience Cloud page and map it to the records you wish to display. Ensure your data source includes the Content Document ID or a File URL

2

Add the Interaction

Open the component's interaction setting in the property panel — Experience Builder has no separate Interactions tab; the setting lives inside the editor for the event you're wiring up — and select Download as the interaction Type. In a Data Table, you can trigger this in two ways:

  • As a Row Action: Add the download command to the action menu (the dropdown at the end of a row). This is best for keeping the table clean.

  • As a Button Column: Create a dedicated column with a "Download" button or icon for every record. This is best for high visibility and quick access

3

Define the Source

  • Url: Use this to reference a specific external link or a custom URL field.

  • Content Document Id: Use this to reference Salesforce files directly.

Note: If both are provided, the Url attribute takes precedence.

4

Enable Public Access (Crucial)

When using Content Document Id, you will see a toggle for Auto Generate Public Link.

  • Always enable this for Experience Sites if you want external users (customers or partners) to download files without encountering permission roadblocks.


Example

Imagine a Partner Portal where partners view a list of "Available Marketing Assets." By adding the Download interaction to a Data Table:

  • Partners see a "Download" icon next to each asset.

  • By enabling Auto Generate Public Link, the partner can instantly download the PDF or image, even if the file was originally uploaded to an internal-only library.


Important Considerations

  • Permissions: While Auto Generate Public Link helps with visibility, ensure your Experience Cloud profile has basic access to the objects being displayed.

  • Url Accuracy: If using the Url method, ensure the link is a "Direct Download" link rather than a preview page to ensure a smooth user experience

Last updated

Was this helpful?