Codeunit 405 Update Item Analysis View Bck.

App
Base Application
Namespace
Microsoft.Inventory.Analysis
Versions
17-23, 25-28
Name by version
Graph Mail from 17, Update Item Analysis View Bck. from 25

Procedures, 10Events, 1

Versions171819202122232425262728

Source29

Source in 29

src/Layers/W1/BaseApp/Inventory/Analysis/UpdateItemAnalysisViewBck.Codeunit.al24 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.Inventory.Analysis;

codeunit 405 "Update Item Analysis View Bck."
{
    Permissions = TableData "Item Analysis View" = r;
    InherentPermissions = X;

    trigger OnRun()
    var
        ItemAnalysisView: Record "Item Analysis View";
        UpdateItemAnalysisView: Codeunit "Update Item Analysis View";
    begin
        ItemAnalysisView.SetRange(Blocked, false);
        ItemAnalysisView.SetRange("Update on Posting", true);
        if ItemAnalysisView.IsEmpty() then
            exit;
        UpdateItemAnalysisView.UpdateAll(ItemAnalysisView, 0, true);
    end;
}