DownloadAttachment
Obtains an attachment from a specified document in Xero.
Input
Name | Type | Required | Description |
Table | String | True | The table containing the document with the attachment.
使用できる値は次のとおりです。Invoices, Receipts, CreditNotes, BankTransactions, BankTransfers, Contacts, Accounts, ManualJournals |
ObjectId | String | True | The unique ID of the item to obtain an attachment from. |
Filename | String | True | The name of the attachment to retrieve. |
DownloadPath | String | False | The path of the file to be saved. Must be a path to a file, not just a directory. |
TenantId | String | 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. |
FileData | String | If the DownloadPath and FileStream are not provided, this contains the base64 encoded content of the file. |