{"title":"attachment resource type","url":"https://jonas-paprotka.de/docs/dev-itpro/api-reference/v2.0/resources/dynamics_attachment/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_attachment","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"An attachments object in Dynamics 365 Business Central.","date":"2026-08-21","meta":{"topic":"reference"},"outline":[{"level":1,"title":"attachment resource type","slug":"attachment-resource-type","at":0,"chars":2535},{"level":2,"title":"Methods","slug":"methods","at":321,"chars":365},{"level":2,"title":"Navigation","slug":"navigation","at":686,"chars":775},{"level":2,"title":"Properties","slug":"properties","at":1461,"chars":559},{"level":2,"title":"JSON representation","slug":"json-representation","at":2020,"chars":325},{"level":2,"title":"Related information","slug":"related-information","at":2345,"chars":190}],"text":"# attachment resource type\nRepresents an attachment in Business Central.\n> NOTE\n> 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).\n## Methods\nMethod|Return Type|Description\n../api/dynamics_attachment_get|attachment|Gets a attachments object.\n../api/dynamics_attachment_delete|none|Deletes a attachments object.\nPOST attachment<../api/dynamics_attachment_create>|attachment|Creates a attachments object.\nPATCH attachment<../api/dynamics_attachment_update>|attachment|Updates a attachments object.\n## Navigation\nNavigation|Return Type|Description\ndynamics_salesinvoice|salesInvoice|Gets the salesinvoice of the attachment.\ndynamics_journalline|journalLine|Gets the journalline of the attachment.\ndynamics_generalledgerentry|generalLedgerEntry|Gets the generalledgerentry of the attachment.\ndynamics_salesorder|salesOrder|Gets the salesorder of the attachment.\ndynamics_salesquote|salesQuote|Gets the salesquote of the attachment.\ndynamics_salescreditmemo|salesCreditMemo|Gets the salescreditmemo of the attachment.\ndynamics_purchaseinvoice|purchaseInvoice|Gets the purchaseinvoice of the attachment.\ndynamics_purchaseorder|purchaseOrder|Gets the purchaseorder of the attachment.\ndynamics_purchasecreditmemo|purchaseCreditMemo|Gets the purchasecreditmemo of the attachment.\n## Properties\nProperty|Type|Description\nid|GUID|The unique ID of the attachments. Non-editable.\nparentId|GUID|The ID of the parent entity.\nfileName|string|Logical filename.\nbyteSize|integer|File size.\nattachmentContent|stream|The attachment's content.\nlastModifiedDateTime|datetime|The last datetime the attachments was modified. Read-Only.\nparentType|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\".\n## JSON representation\nHere's a JSON representation of the attachment resource.\n```json\n{\n    \"id\": \"GUID\",\n    \"parentId\": \"GUID\",\n    \"fileName\": \"string\",\n    \"byteSize\": \"integer\",\n    \"attachmentContent\": \"stream\",\n    \"lastModifiedDateTime\": \"datetime\",\n    \"parentType\": \"NAV.attachmentEntityBufferDocumentType\"\n}\n```\n## Related information\n../api/dynamics_attachment_get\n../api/dynamics_attachment_delete\nPOST attachment<../api/dynamics_attachment_create>\nPATCH attachment<../api/dynamics_attachment_update>"}