Codeunit 6180 Download Document

E-Document Core, Microsoft.eServices.EDocument.Integration.Receive

Source AL, 50 lines

src/Apps/W1/EDocument/App/src/Integration/Receive/DownloadDocument.Codeunit.allines 14 to 29 of 50, Copyright (c) Microsoft Corporation. MIT

codeunit 6180 "Download Document"{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    trigger OnRun()    begin        this.GlobalEDocumentService.TestField(Code);        IDocumentReceiver.DownloadDocument(this.GlobalEDocument, this.GlobalEDocumentService, this.GlobalDocumentMetadata, this.GlobalReceiveContext);    end;    procedure SetContext(ReceiveContext: Codeunit ReceiveContext)    begin        this.GlobalReceiveContext := ReceiveContext;    end;

All 50 lines

Public procedures 3 in 29

SetContext(ReceiveContext: Codeunit ReceiveContext)new in 26
SetInstance(Reciver: Interface IDocumentReceiver)new in 26
SetParameters(var EDocument: Record "E-Document"; var EDocumentService: Record "E-Document Service"; DocumentMetadata: Codeunit "Temp Blob")new in 26