Skip to main content

Download attachment

Save an attachment (from a ticket comment) to a local folder under its own name.

Command in the Zendesk toolkit · id ooa.zendesk/download_attachment · 7 inputs (2 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
SiteStringYesYour Zendesk address, e.g. https://acme.zendesk.com, or just the subdomain acme.
EmailStringNoEmail of the agent the API token belongs to. Leave empty when using an OAuth token.
API tokenCredentialNoZendesk API token from the vault (used with email).
OAuth tokenCredentialNoOAuth access token from the vault, instead of email and API token. Or leave it empty and choose a connection that signs in, which gets and renews the token.
Attachment IDNumberYesAttachment id, from List comments.
FolderFileNo.Folder to save into; the run's temporary folder when empty (G5).
OverwriteBooleanNotrueReplace a file of the same name; otherwise a number is added.

Outputs​

OutputTypeWhat it is
pathFileSaved file.