Codeunit 1547 Workflow Webhook Sub Delete

Base Application, System.Automation

Source AL, 31 lines

src/Layers/W1/BaseApp/System/Workflow/WorkflowWebhookSubDelete.Codeunit.allines 3 to 18 of 31, Copyright (c) Microsoft Corporation. MIT

codeunit 1547 "Workflow Webhook Sub Delete"{    // // Intended to be called by Task Scheduler as part of cleaning up when    // // a subscription is deleted from Table 469 Workflow Webhook Subscription    TableNo = Workflow;    trigger OnRun()    var        WorkflowWebhookSubBuffer: Record "Workflow Webhook Sub Buffer";    begin        // disable corresponding WorkflowWebhookSubBuffer entry        WorkflowWebhookSubBuffer.SetRange("WF Definition Id", Rec.Code);        if WorkflowWebhookSubBuffer.FindFirst() then            WorkflowWebhookSubBuffer.Delete();

All 31 lines