# attachment resource type
Represents an attachment in Business Central.
> NOTE
> For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central<../enabling-apis-for-dynamics-nav>. An attachment in the Business Central API is defined as an Incoming Document (table 130).
## Methods
Method|Return Type|Description
../api/dynamics_attachment_get|attachment|Gets a attachments object.
../api/dynamics_attachment_delete|none|Deletes a attachments object.
POST attachment<../api/dynamics_attachment_create>|attachment|Creates a attachments object.
PATCH attachment<../api/dynamics_attachment_update>|attachment|Updates a attachments object.
## Navigation
Navigation|Return Type|Description
dynamics_salesinvoice|salesInvoice|Gets the salesinvoice of the attachment.
dynamics_journalline|journalLine|Gets the journalline of the attachment.
dynamics_generalledgerentry|generalLedgerEntry|Gets the generalledgerentry of the attachment.
dynamics_salesorder|salesOrder|Gets the salesorder of the attachment.
dynamics_salesquote|salesQuote|Gets the salesquote of the attachment.
dynamics_salescreditmemo|salesCreditMemo|Gets the salescreditmemo of the attachment.
dynamics_purchaseinvoice|purchaseInvoice|Gets the purchaseinvoice of the attachment.
dynamics_purchaseorder|purchaseOrder|Gets the purchaseorder of the attachment.
dynamics_purchasecreditmemo|purchaseCreditMemo|Gets the purchasecreditmemo of the attachment.
## Properties
Property|Type|Description
id|GUID|The unique ID of the attachments. Non-editable.
parentId|GUID|The ID of the parent entity.
fileName|string|Logical filename.
byteSize|integer|File size.
attachmentContent|stream|The attachment's content.
lastModifiedDateTime|datetime|The last datetime the attachments was modified. Read-Only.
parentType|NAV.attachmentEntityBufferDocumentType|The type of the parent document of the attachments. It can be " ", "Journal", "Sales Order", "Sales Quote", "Sales Credit Memo", "Sales Invoice" or "Purchase Invoice".
## JSON representation
Here's a JSON representation of the attachment resource.
```json
{
    "id": "GUID",
    "parentId": "GUID",
    "fileName": "string",
    "byteSize": "integer",
    "attachmentContent": "stream",
    "lastModifiedDateTime": "datetime",
    "parentType": "NAV.attachmentEntityBufferDocumentType"
}
```
## Related information
../api/dynamics_attachment_get
../api/dynamics_attachment_delete
POST attachment<../api/dynamics_attachment_create>
PATCH attachment<../api/dynamics_attachment_update>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_attachment, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/api-reference/v2.0/resources/dynamics_attachment/
