Codeunit 1550 Record Restriction Mgt.

Base Application, System.Automation

Source AL, 958 lines

src/Layers/W1/BaseApp/System/Workflow/RecordRestrictionMgt.Codeunit.allines 16 to 31 of 958, Copyright (c) Microsoft Corporation. MIT

codeunit 1550 "Record Restriction Mgt."{    Permissions = TableData "Restricted Record" = rimd;    trigger OnRun()    begin    end;    var#pragma warning disable AA0470        RecordRestrictedTxt: Label 'You cannot use %1 for this action.', Comment = 'You cannot use Customer 10000 for this action.';#pragma warning restore AA0470        RestrictLineUsageDetailsTxt: Label 'The restriction was imposed because the line requires approval.';        RestrictBatchUsageDetailsTxt: Label 'The restriction was imposed because the journal batch requires approval.';        RestrictVendorBankUsageDetailsTxt: Label 'The restriction was imposed because the vendor bank requires approval.';

All 958 lines

Events 22 in 29

[IntegrationEvent] OnBeforeCustomerCheckSalesPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeVendorCheckPurchasePostRestrictions(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)new in 20
[IntegrationEvent] OnBeforeCustomerCheckGenJournalLinePostRestrictions(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)new in 20
[IntegrationEvent] OnBeforeVendorCheckGenJournalLinePostRestrictions(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)new in 20
[IntegrationEvent] OnBeforeItemJournalLineCheckItemPostRestrictions(var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)new in 20
[IntegrationEvent] OnBeforeGenJournalLineCheckGenJournalLinePostRestrictions(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)new in 20
[IntegrationEvent] OnBeforeGenJournalLineCheckGenJournalLinePrintCheckRestrictions(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)new in 20

All 22 events

Public procedures 52 in 29

RestrictRecordUsage(RecVar: Variant; RestrictionDetails: Text)17-29
AllowGenJournalBatchUsage(GenJournalBatch: Record "Gen. Journal Batch")17-29
AllowItemJournalBatchUsage(ItemJournalBatch: Record "Item Journal Batch")17-29
AllowFAJournalBatchUsage(FAJournalBatch: Record "FA Journal Batch")17-29
AllowRecordUsage(RecVar: Variant)17-29
RestrictGenJournalLineAfterInsert(var Rec: Record "Gen. Journal Line"; RunTrigger: Boolean)17-29

All 52 procedures

Changes 1 in 29

List17181920212223242526272829
Procedures1141
Events15141
RemoveVendorBankAccountRestrictionsBeforeDelete(var Rec: Record "Vendor Bank Account"; RunTrigger: Boolean)new in 29
added

All 37 changes in 17-29