JDBC Driver for Certinia

Build 24.0.9062

UploadAttachment

Uploads an attachment and associates it with an entity in Salesforce.

Note:このプロシージャは、インデックス付きパラメータを使用します。 インデックス付きパラメータは、プロシージャの入力として単一のパラメータを複数のインスタンスに提供することを容易にします。

Param# という名前の入力パラメータがあるとします。このようなインデックス付きパラメータの複数のインスタンスを入力するには、次のように実行します。

EXEC ProcedureName Param#1 = "value1", Param#2 = "value2", Param#3 = "value3"

以下の表では、インデックス付きの入力パラメータは、名前の末尾に '#' 文字が付きます。

Input

Name Type Accepts Input Streams Description
ObjectId# String False Required. The Id of the object to associate the uploaded document with.
FullPath# String False The full path to the document to upload. If Base64Data is not specified, this input is required. Either specify this or FullPath/FolderPath for a single object and not both.
Base64Data# String False A string of data that will be used as the full contents of the file. This must be base-64 encoded. Required if FullPath is not specified.
FileName# String False The name you would like to give the attachment. If none is specified, the file name specified in the FullPath will be used. Required if Base64Data is specified.
FolderPath# String False Used to batch upload every file inside a specified folder. Either specify this or FullPath for a single object and not both.
LightningMode String False Defaults to false. If set to 'True' the file will be uploaded as 'Salesforce Files'. The 'FullPath' must be specified if this is set to true.
AttachmentTempTable String False Used to batch upload multiple Attachment objects. Set this to a temporary table, whose rows contain upload inputs like in the example below.
Content String True The file content as an InputStream. Only used if FullPath is empty.

Result Set Columns

Name Type Description
Id String The Id of the uploaded attachment.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9062