Skip to main content

Download attachment

Save an attachment to a local folder under its original file name.

Command in the ServiceNow toolkit · id ooa.servicenow/download_attachment · 9 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Instance address (URL)StringNoInstance URL, e.g. https://yourcompany.service-now.com.
Attachment IDStringYesAttachment sys_id, from List attachments.
FolderFileNo.Folder to save into.
UserStringNoUser name.
PasswordCredentialNoPassword from the vault.
Access tokenCredentialNoOAuth token from the vault.
File nameStringNoName to save the file under; the attachment's own name when empty.
OverwriteBooleanNotrueReplace a file of the same name; when off, the action stops with an error instead.
API versionStringNoVersion of the ServiceNow REST API to call: v1, v2, or latest (the instance's current one) when empty (G6).

Outputs​

OutputTypeWhat it is
pathFileSaved file.