Codeunit 6181 Mark Fetched
src/Apps/W1/EDocument/App/src/Integration/Receive/MarkFetched.Codeunit.al51 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.eServices.EDocument.Integration.Receive;using Microsoft.eServices.EDocument;using Microsoft.eServices.EDocument.Integration.Interfaces;using System.Utilities;/// <summary>/// Executes the MarkFetched operation using the IReceivedDocumentMarker interface./// </summary>codeunit 6181 "Mark Fetched"{ Access = Internal; InherentEntitlements = X; InherentPermissions = X; trigger OnRun() begin if GlobalIDocumentReceiver is IReceivedDocumentMarker then (GlobalIDocumentReceiver as IReceivedDocumentMarker).MarkFetched(this.EDocument, this.EDocumentService, this.DownloadedBlob, this.GlobalReceiveContext); end; procedure SetInstance(IDocumentReceiver: Interface IDocumentReceiver) begin this.GlobalIDocumentReceiver := IDocumentReceiver; end; procedure SetContext(ReceiveContext: Codeunit ReceiveContext) begin this.GlobalReceiveContext := ReceiveContext; end; procedure SetParameters(var EDoc: Record "E-Document"; var EDocService: Record "E-Document Service"; TempBlob: Codeunit "Temp Blob") begin this.EDocument.Copy(EDoc); this.EDocumentService.Copy(EDocService); this.DownloadedBlob := TempBlob; end; var EDocument: Record "E-Document"; EDocumentService: Record "E-Document Service"; DownloadedBlob: Codeunit "Temp Blob"; GlobalReceiveContext: Codeunit ReceiveContext; GlobalIDocumentReceiver: Interface IDocumentReceiver;}