Codeunit 132 Release Incoming Document

Base Application, Microsoft.EServices.EDocument

Source AL, 147 lines

src/Layers/W1/BaseApp/eServices/EDocument/ReleaseIncomingDocument.Codeunit.allines 9 to 24 of 147, Copyright (c) Microsoft Corporation. MIT

codeunit 132 "Release Incoming Document"{    TableNo = "Incoming Document";    Permissions = TableData "Incoming Document" = rm;    trigger OnRun()    begin        if Rec.Status = Rec.Status::Released then            exit;        if Rec.Status in [Rec.Status::Created, Rec.Status::Posted] then            Error(CanReleasedIfStatusErr, Rec.Status::"Pending Approval", Rec.Status::New, Rec.Status::Failed);        Rec.OnCheckIncomingDocReleaseRestrictions();        Rec.TestField(Posted, false);

All 147 lines

Events 3 in 29

[IntegrationEvent] OnAfterReleaseIncomingDoc(var IncomingDocument: Record "Incoming Document")17-29
[IntegrationEvent] OnAfterCreateDocFromIncomingDocSuccess(var IncomingDocument: Record "Incoming Document")17-29
[IntegrationEvent] OnAfterCreateDocFromIncomingDocFail(var IncomingDocument: Record "Incoming Document")17-29

Public procedures 7 in 29

Reopen(var IncomingDocument: Record "Incoming Document")17-29
Reject(var IncomingDocument: Record "Incoming Document")17-29
Fail(var IncomingDocument: Record "Incoming Document")17-29
Create(var IncomingDocument: Record "Incoming Document")17-29
PerformManualRelease(var IncomingDocument: Record "Incoming Document")17-29
PerformManualReopen(var IncomingDocument: Record "Incoming Document")17-29

All 7 procedures