JDBC Driver for Salesforce

Build 26.0.9770

Attachment

Stores file attachments related to various Salesforce records, such as accounts, opportunities, or cases.

Columns

Name Type ReadOnly References Description
Id [KEY] String True

Unique identifier for the attachment record.

IsDeleted Bool True

Indicates whether the attachment has been deleted from Salesforce.

ParentId String False

ID of the parent record the attachment is associated with, such as an Account, Case, or Opportunity.

Name String False

The name of the attached file, including its file extension.

IsPrivate Bool False

Specifies whether the attachment is private. Private attachments are accessible only to the owner and users above them in the role hierarchy.

ContentType String False

The MIME type of the attached file, such as application/pdf or image/jpeg.

BodyLength Int True

The size of the attached file, in bytes.

Body String False

The file content of the attachment, stored in Base64 format.

OwnerId String False

ID of the user who owns the attachment.

CreatedDate Datetime True

Date and time when the attachment was created.

CreatedById String True

User.Id

ID of the user who created the attachment.

LastModifiedById String True

User.Id

ID of the user who last modified the attachment.

Description String False

Optional text description providing additional details about the attachment.

SystemModstamp Datetime True

Timestamp of the last system-level update to the attachment record.

LastModifiedDate Datetime True

Date and time when the attachment was last modified.

Pseudocolumns

Pseudocolumn fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
ParentIdType String

Specifies the type of the 'ParentId' polymorphic field to use in the statement.

ParentIdExternalFieldName String

Specifies the external field name of the 'ParentId' polymorphic field to use in an INSERT/UPDATE/UPSERT statement

OwnerIdType String

Specifies the type of the 'OwnerId' polymorphic field to use in the statement.

OwnerIdExternalFieldName String

Specifies the external field name of the 'OwnerId' polymorphic field to use in an INSERT/UPDATE/UPSERT statement

CreatedByIdType String

Specifies the type of the 'CreatedById' polymorphic field to use in the statement.

CreatedByIdExternalFieldName String

Specifies the external field name of the 'CreatedById' polymorphic field to use in an INSERT/UPDATE/UPSERT statement

LastModifiedByIdType String

Specifies the type of the 'LastModifiedById' polymorphic field to use in the statement.

LastModifiedByIdExternalFieldName String

Specifies the external field name of the 'LastModifiedById' polymorphic field to use in an INSERT/UPDATE/UPSERT statement

SOQL String

Specifies the SOQL query to execute against the Salesforce servers. If this pseudo column is set from the WHERE clause it will take precedence over the original query.

ExternalIdColumn String

Specifies the external Id column to use if performing an insert. If this value is specified, upsert will be used when the INSERT command is called.

FilterScope String

Optional scope to limit the records returned from queries. This property can take one of these values: Delegated, Everything, Mine, MineAndMyGroups, My_Territory, My_Team_Territory, or Team.

FullPath String

Pseudo column which is used to fill a attachment#TEMP temporary table, which is then used to upload multiple attachments using the Uploadattachment stored procedure. See documentation for an example.

FolderPath String

Pseudo column which is used to fill a attachment#TEMP temporary table, which is then used to upload multiple attachments using the Uploadattachment stored procedure. See documentation for an example.

Base64Data String

Pseudo column which is used to fill a attachment#TEMP temporary table, which is then used to upload multiple attachments using the Uploadattachment stored procedure. See documentation for an example.

ObjectId String

Pseudo column which is used to fill a attachment#TEMP temporary table, which is then used to upload multiple attachments using the Uploadattachment stored procedure. See documentation for an example.

FileName String

Pseudo column which is used to fill a attachment#TEMP temporary table, which is then used to upload multiple attachments using the Uploadattachment stored procedure. See documentation for an example.

LightningMode String

Pseudo column which is used to fill a attachment#TEMP temporary table, which is then used to upload multiple attachments using the Uploadattachment stored procedure. See documentation for an example.

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