Skip to content

BC Attachments ​

Manages file attachments on Business Central records — retrieving, adding, or deleting attachments for items, customers, vendors, orders, and invoices.

Purpose ​

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.

Inputs ​

FieldTypeRequiredDescription
CompanyTextYesThe name or ID of the Business Central company to operate against.
OperationDropdownYesThe attachment operation to perform: Get Attachments, Add Attachment, or Delete Attachment.
Record TypeDropdownYesThe type of Business Central record to operate on (e.g. Item, Customer, Sales Order).
Record IdentifierTextYesThe system ID (GUID) or No. of the record, such as an item number or customer number.
File PathTextNoThe full local path to the file to attach. Only used when Operation is Add Attachment.
Attachment NameTextNoThe 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.

Visibility Rules ​

File Path is only shown when Operation is set to Add Attachment.

Attachment Name is only shown when Operation is set to Delete Attachment.

Operations ​

OperationDescription
Get AttachmentsRetrieves all attachments associated with the specified record.
Add AttachmentUploads a local file and attaches it to the specified record.
Delete AttachmentRemoves all attachments on the record that match the given filename.

Outputs ​

NameDescription
AttachmentsA list of attachment objects retrieved from the record. Available when Operation is Get Attachments.
AttachmentCountThe number of attachments retrieved. Available when Operation is Get Attachments.
AttachmentIdThe system ID of the newly created attachment. Available when Operation is Add Attachment.
AttachmentFileNameThe filename of the newly created attachment. Available when Operation is Add Attachment.
DeletedCountThe number of attachments that were deleted. Available when Operation is Delete Attachment.

Tentech