ADO.NET Provider for Smartsheet

Build 25.0.9434

UploadAttachment

Upload a file attachment in one of your Smartsheet sheets.

Input

Name Type Required Accepts Input Streams Description
SheetId String True False The unique identifier of the sheet where the file attachment will be uploaded. Omitting both CommentId and RowId parameters, will result in the attachment being uploaded in sheet level.
RowId String False False The unique identifier of a row in the sheet, if you want to attach the file in row level.
CommentId String False False The unique identifier of a comment in the sheet, if you want to attach the file in comment level.
Name String True False The name of the attachment.
FilePath String False False The absolute path of the file in your system to upload as the new attachment.
Content String False True An InputStream object containing the content of the new attachment to be uploaded. This can be used as an alternative to the FilePath parameter.

Result Set Columns

Name Type Description
Success Boolean Boolean value indicating whether the upload operation was successful. Returns 'true' if the new attachment was created successfully, and 'false' otherwise.

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