Search K
Appearance
Appearance
Manages file attachments on Business Central records — retrieving, adding, or deleting attachments for items, customers, vendors, orders, and invoices.
Use this task when a workflow needs to interact with files attached to a Business Central record. It can list all attachments on a record, upload a new file as an attachment, or remove existing attachments by name. This is useful for keeping supporting documents such as drawings, certificates, or invoices in sync between your workflow and Business Central.
| Field | Type | Required | Description |
|---|---|---|---|
| Company | Text | Yes | The name or ID of the Business Central company to operate against. |
| Operation | Dropdown | Yes | The attachment operation to perform: Get Attachments, Add Attachment, or Delete Attachment. |
| Record Type | Dropdown | Yes | The type of Business Central record to operate on (e.g. Item, Customer, Sales Order). |
| Record Identifier | Text | Yes | The system ID (GUID) or No. of the record, such as an item number or customer number. |
| File Path | Text | No | The full local path to the file to attach. Only used when Operation is Add Attachment. |
| Attachment Name | Text | No | The filename of the attachment(s) to delete. All attachments on the record with this name will be removed. Only used when Operation is Delete Attachment. |
File Path is only shown when Operation is set to Add Attachment.
Attachment Name is only shown when Operation is set to Delete Attachment.
| Operation | Description |
|---|---|
| Get Attachments | Retrieves all attachments associated with the specified record. |
| Add Attachment | Uploads a local file and attaches it to the specified record. |
| Delete Attachment | Removes all attachments on the record that match the given filename. |
| Name | Description |
|---|---|
| Attachments | A list of attachment objects retrieved from the record. Available when Operation is Get Attachments. |
| AttachmentCount | The number of attachments retrieved. Available when Operation is Get Attachments. |
| AttachmentId | The system ID of the newly created attachment. Available when Operation is Add Attachment. |
| AttachmentFileName | The filename of the newly created attachment. Available when Operation is Add Attachment. |
| DeletedCount | The number of attachments that were deleted. Available when Operation is Delete Attachment. |