Codeunit 5358 Int. Uncouple Job Runner
src/Layers/W1/BaseApp/Integration/SynchEngine/IntUncoupleJobRunner.Codeunit.al28 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.Integration.SyncEngine;using System.Threading;codeunit 5358 "Int. Uncouple Job Runner"{ TableNo = "Job Queue Entry"; trigger OnRun() var IntegrationTableMapping: Record "Integration Table Mapping"; begin IntegrationTableMapping.Get(Rec."Record ID to Process"); RunIntegrationTableUncouple(IntegrationTableMapping, Rec.GetLastLogEntryNo()); end; procedure RunIntegrationTableUncouple(IntegrationTableMapping: Record "Integration Table Mapping"; JobLogEntryNo: Integer) begin IntegrationTableMapping.SetJobLogEntryNo(JobLogEntryNo); Codeunit.Run(IntegrationTableMapping."Uncouple Codeunit ID", IntegrationTableMapping); end;}