---
title: "Codeunit 134 Import Attachment - Inc. Doc."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/134-import-attachment-inc-doc/
type: codeunit
id: 134
name: "Import Attachment - Inc. Doc."
app: "Base Application"
namespace: Microsoft.EServices.EDocument
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/134-import-attachment-inc-doc/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 134 Import Attachment - Inc. Doc.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/134-import-attachment-inc-doc/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.EServices.EDocument |
| Versions | 17-28 |
| Source file | eServices/EDocument/ImportAttachmentIncDoc.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| UploadFile | (var Record Incoming Document Attachment, var Text) | - | public | 17-28 | - | - |
| ImportAttachment | (var Record Incoming Document Attachment, Text) | Boolean | public | 17-28 | - | - |
| CreateNewAttachment | (var Record Incoming Document Attachment) | - | public | 17-28 | - | - |
| ProcessAndUploadPicture | (Text, var Record Incoming Document Attachment) | - | public | 17 | Pending 15.3 | Replaced with the version accepting a stream. |
| ProcessAndUploadPicture | (InStream, var Record Incoming Document Attachment) | - | public | 17-28 | - | - |
| SetTestMode | () | - | public | 17-28 | - | - |
| ImportAttachment | (var Record Incoming Document Attachment, Text[250], var Codeunit Temp Blob) | Boolean | public | 21-28 | - | - |
| ImportMultiple | (var Record Incoming Document Attachment, Boolean, List) | Boolean | public | 25-28 | - | - |
| ImportMultiple | (var Record Incoming Document Attachment, Boolean, List, TextEncoding) | Boolean | public | 25-28 | - | - |
| ImportAttachment | (var Record Incoming Document Attachment, FileUpload) | Boolean | internal | 25-28 | - | - |
| ImportAttachment | (var Record Incoming Document Attachment, FileUpload, TextEncoding) | Boolean | internal | 25-28 | - | - |
| CreateIncomingDocumentExtended | (var Record Incoming Document Attachment, var Record Incoming Document, Date, Code[20], RecordId) | - | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterImportAttachment | (var Record Incoming Document Attachment) | 17-28 | - | - |
| Integration event | OnBeforeCreateNewSalesPurchIncomingDoc | (var Record Incoming Document Attachment, var Integer, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeUploadFile | (var Record Incoming Document Attachment) | 17-28 | - | - |
| Integration event | OnFindUsingDocNoFilterOnBeforeFind | (var Record Incoming Document Attachment, var Record Incoming Document, Date, Code[20], var Boolean, var Boolean) | 22-28 | - | - |
| Integration event | OnBeforeGetUnpostedSalesPurchaseDocType | (var Record Incoming Document Attachment, var Record Incoming Document, var Enum Incoming Related Document Type) | 25-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
