Skip to main content

Generate Artifact Download Links

The Generate Artifact Download Links action creates temporary download links for files in the current automation, such as email attachments, form uploads, or a PDF from Generate PDF. Use the links in an email, a ticket note, or an API request.

When to Use This Action​

Use this action when:

  • You need to share a form upload without attaching it directly to a message
  • You need a temporary URL for a PDF created earlier in the automation
  • A later API action requires a downloadable file URL

Don't use this action when the destination accepts a direct file attachment. Use Send an Email or a PSA action with a Files section instead.

How It Works​

The action creates one link for each file that matches your Files selection and stores the links as a list. Anyone with a link can download the file until the link expires. Each link stops working after Link Lifetime, or when the automation's history entry is purged, whichever comes first.

Configuration​

File Selection​

FieldDescription
FilesAdd source rows in processing order. No files are selected by default. Sources can include email.attachments, email.inline_images, optional original-email files, input form fields, custom action results, and All Files.
FilenameMatch filenames with * as a wildcard, such as *.pdf. Leave empty to match every filename. Each source row has this filter.
MIME typeMatch MIME types with * as a wildcard, such as image/*. Leave empty to match every type. Each source row has this filter.
Maximum bytesInclude only files at or below this size. Leave empty to allow any size. Each source row has this filter.

Use Up and Down to set source order. The action keeps the first occurrence when sources contain the same file. A file must match every filter you fill in on its source row. To filter every available file, add an All Files source and configure its row filters.

In an email automation, All Files includes the attachments, inline images, the original email as an .eml file, and an image of the original email.

FieldDescription
Link LifetimeHow long each link works, in minutes. Minimum: 1. Default: 60. A link stops working earlier if the history entry is purged first.

Returned Variables​

Store the results in a variable to receive an array with one object per selected file.

VariableTypeDescription
filenamestringFilename presented when the recipient downloads the file.
urlstringThe temporary download link.
expires_atstringExpiry date and time in ISO 8601 format.

For a results variable named downloadLinks, reference the first URL as:

{{custom.downloadLinks.[0].url}}

If no files match, the action returns an empty array.

FAQs​

No. A link cannot outlive the automation's history entry. To keep a file longer, attach it to an email or PSA record, or upload it to your own storage.

The download fails. Generate a new link while the history entry still exists, or replay the automation.