ADO.NET Provider for Certinia

Build 25.0.9434

UploadAttachment

Uploads an attachment and associates it with a specific Salesforce record.

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

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

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

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

Input

Name Type Accepts Input Streams Description
ObjectId# String False The ID of the Salesforce object (such as an Account or Opportunity) to associate the uploaded file with. This field is required.
FullPath# String False The full file path of the document to upload from your local system. Required if Base64Data is not provided. Only one of FullPath or FolderPath should be specified per upload.
Base64Data# String False The full contents of the file, Base64-encoded. Required if FullPath is not provided. Useful for programmatic uploads without file system access.
FileName# String False The name to assign to the uploaded attachment. Required if using Base64Data. If using FullPath, the file name will be derived automatically if this is left blank.
FolderPath# String False Path to a folder containing multiple files to be batch uploaded. Either specify FolderPath or FullPath, not both.
LightningMode String False Set to 'true' to upload files as 'Salesforce Files' instead of legacy Attachments. Required when working with Salesforce Lightning. FullPath must be specified when using this mode.
AttachmentTempTable String False A temporary table containing multiple attachment records for batch uploading. Each row must include upload details such as ObjectId and FullPath or Base64Data.
Content String True The content of the file as an InputStream. Used when FullPath is not specified. Typically for programmatic uploads.

Result Set Columns

Name Type Description
Id String The unique ID of the newly uploaded attachment in Salesforce.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434