JDBC Driver for ServiceNow

Build 25.0.9539

DownloadAttachment

Downloads a file attachment from a specified record.

Input

Name Type Required Accepts Output Streams Description
SysId String True False Specifies the system identifier (sys_id) of the attachment file to download from the ServiceNow record.
LocalPath String False False Defines the full local file path where the downloaded attachment should be saved on disk.
FileStream String False True Provides an output stream to write the attachment data to when the LocalPath input is not provided, allowing programmatic handling of the file content.

Result Set Columns

Name Type Description
Success String Indicates whether the attachment download operation completed successfully and the file was retrieved without errors.
FileData String Returns the attachment file content encoded in Base64 when both LocalPath and FileStream inputs are not provided.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9539