Codeunit "Import Attachment - Inc. Doc."

ID 134
Namespace: Microsoft.EServices.EDocument

Properties

Name Value
TableNo Table Microsoft.EServices.EDocument."Incoming Document Attachment"

Methods

ImportMultiple

procedure ImportMultiple(var IncDocAttachment: Record "Incoming Document Attachment", RethrowError: Boolean, files: List of [FileUpload]): Boolean

Parameters

Name Type Description
IncDocAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"
RethrowError Boolean
files List of [FileUpload]

Returns

Type Description
Boolean

ImportMultiple

procedure ImportMultiple(var IncDocAttachment: Record "Incoming Document Attachment", RethrowError: Boolean, files: List of [FileUpload], Encoding: TextEncoding): Boolean

Parameters

Name Type Description
IncDocAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"
RethrowError Boolean
files List of [FileUpload]
Encoding TextEncoding

Returns

Type Description
Boolean

ImportAttachment

procedure ImportAttachment(var IncomingDocumentAttachment: Record "Incoming Document Attachment", FileName: Text[250], var TempBlob: Codeunit "Temp Blob"): Boolean

Parameters

Name Type Description
IncomingDocumentAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"
FileName Text[250]
TempBlob Codeunit System.Utilities."Temp Blob"

Returns

Type Description
Boolean

CreateNewAttachment

procedure CreateNewAttachment(var IncomingDocumentAttachment: Record "Incoming Document Attachment")

Parameters

Name Type Description
IncomingDocumentAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"

CreateIncomingDocumentExtended

procedure CreateIncomingDocumentExtended(var IncomingDocumentAttachment: Record "Incoming Document Attachment", var IncomingDocument: Record "Incoming Document", PostingDate: Date, DocNo: Code[20], RelatedRecordID: RecordId)

Parameters

Name Type Description
IncomingDocumentAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
PostingDate Date
DocNo Code[20]
RelatedRecordID RecordId

ProcessAndUploadPicture

procedure ProcessAndUploadPicture(PictureStream: InStream, var IncomingDocumentAttachmentOriginal: Record "Incoming Document Attachment")

Parameters

Name Type Description
PictureStream InStream
IncomingDocumentAttachmentOriginal Table Microsoft.EServices.EDocument."Incoming Document Attachment"

Events

OnAfterImportAttachment

[IntegrationEvent(False,False)]
local procedure OnAfterImportAttachment(var IncomingDocumentAttachment: Record "Incoming Document Attachment")

Parameters

Name Type Description
IncomingDocumentAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"

OnBeforeCreateNewSalesPurchIncomingDoc

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateNewSalesPurchIncomingDoc(var IncomingDocumentAttachment: Record "Incoming Document Attachment", var IncomingDocEntryNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocumentAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"
IncomingDocEntryNo Integer
IsHandled Boolean

OnBeforeUploadFile

[IntegrationEvent(False,False)]
local procedure OnBeforeUploadFile(var IncomingDocumentAttachment: Record "Incoming Document Attachment")

Parameters

Name Type Description
IncomingDocumentAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"

OnFindUsingDocNoFilterOnBeforeFind

[IntegrationEvent(False,False)]
local procedure OnFindUsingDocNoFilterOnBeforeFind(var IncomingDocumentAttachment: Record "Incoming Document Attachment", var IncomingDocument: Record "Incoming Document", PostingDate: Date, DocNo: Code[20], var IsFound: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocumentAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
PostingDate Date
DocNo Code[20]
IsFound Boolean
IsHandled Boolean
[IntegrationEvent(False,False)]
local procedure OnBeforeGetUnpostedSalesPurchaseDocType(var IncomingDocumentAttachment: Record "Incoming Document Attachment", var IncomingDocument: Record "Incoming Document", var RelatedDocumentType: Enum "Incoming Related Document Type")

Parameters

Name Type Description
IncomingDocumentAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
RelatedDocumentType Enum Microsoft.EServices.EDocument."Incoming Related Document Type"

See also