CData Python Connector for Xero

Build 22.0.8479

UploadAttachment

Obtains a list of attachments an item has in Xero.

Input

Name Type Required Accepts Input Streams Description
Table String True False The table containing the document with the attachment.

使用できる値は次のとおりです。Invoices, Receipts, CreditNotes, BankTransactions, BankTransfers, Contacts, Accounts, ManualJournals

ObjectId String True False The unique ID of the item to obtain an attachment from.
FilePath String False False The location of the file to attach.
FileData String False False Base-64 encoded data for the file. Required if FilePath is not defined.
FileStream String False True Stream of input data. Required if Filename and FileData are not defined.
Filename String False False The name of the file to attach. Required if FilePath is not defined.
ContentType String False False The type of file to attach.
IncludeOnline String False False Sets an attachment to be included with the invoice when viewed online. Set false by default.
TenantId String False False The ID of the tenant to query instead of the connection tenant

Result Set Columns

Name Type Description
Success String A boolean indicating if the operation was successful.
AttachmentId String The ID of the attachment.
FileName String The file name of the attachment.
URL String The URL of the attachment.
MimeType String The Internet media type of the attachment.
ContentLength String The size of the attachment in bytes.
IncludeOnline String A boolean indicating if IncludeOnline was set to true.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479