---
id: object/codeunit/1330
type: object
title: Codeunit 1330 "Instruction Mgt."
summary: Codeunit 1330 "Instruction Mgt." in Base Application (Microsoft.Utilities). 32 public procedures, 4 events, 3 event subscribers. Present since at least BC23, still in BC30, changed in BC24, BC27.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "27"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 45663ddd50b05f18b08f97b4daf6a1e7b9316530316b1a2128f8e5fab72d6f84
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Utilities/InstructionMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Utilities/InstructionMgt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1330
name: Instruction Mgt.
namespace: Microsoft.Utilities
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "27"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 39
  events: 4
  subscribers: 3
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 2
  calls: 0
  called_by: 30
  implements: 0
---

# Codeunit 1330 "Instruction Mgt."

> Codeunit 1330 "Instruction Mgt." in Base Application (Microsoft.Utilities). 32 public procedures, 4 events, 3 event subscribers. Present since at least BC23, still in BC30, changed in BC24, BC27.

Base Application · Microsoft.Utilities · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Utilities/InstructionMgt.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "My Notifications" = rimd |

## Events published

- `OnBeforeIsUnpostedEnabledForRecord(RecVariant: Variant; var Enabled: Boolean; var IsHandled: Boolean)` (integration)
- `OnAfterIsEnabled(InstructionType: Code[50]; var Result: Boolean)` (integration)
- `OnBeforeInsertDefaultUnpostedDoucumentNotification(var MyNotifications: Record "My Notifications")` (integration)
- `OnShowPostedDocumentOnBeforePageRun(RecVariant: Variant; CalledFromPageId: Integer; var PageId: Integer)` (integration)
  - subscribers: [Codeunit 6450 "Serv. Integration Mgt."](../codeunit/6450.md) OnShowPostedDocumentOnBeforePageRun, [Codeunit 6908 "Expense Event Subscriber"](../codeunit/6908.md) OnShowPostedDocumentOnBeforePageRun

## Event subscriptions

- OnInitializingNotificationWithDefaultState subscribes to Page "My Notifications" OnInitializingNotificationWithDefaultState
- OnAfterIsNotificationEnabled subscribes to Table "My Notifications" OnAfterIsNotificationEnabled
- OnStateChanged subscribes to Table "My Notifications" OnStateChanged

## Procedures

- `ShowConfirm(ConfirmQst: Text; InstructionType: Code[50]): Boolean`
- `ShowConfirmUnreleased(): Boolean`
- `ShowConfirmNonCertified(): Boolean`
- `DisableMessageForCurrentUser(InstructionType: Code[50])`
- `EnableMessageForCurrentUser(InstructionType: Code[50])`
- `IsEnabled(InstructionType: Code[50]): Boolean`
- `IsUnpostedEnabledForRecord(RecVariant: Variant): Boolean`
- `IsMyNotificationEnabled(NotificationID: Guid): Boolean`
- `CreateMissingMyNotificationsWithDefaultState(NotificationID: Guid)`
- `ShowPostedConfirmationMessageCode(): Code[50]`
- `QueryPostOnCloseCode(): Code[50]`
- `OfficeUpdateNotificationCode(): Code[50]`
- `GetDefaultDimPrioritiesTxt(): Text[128]`
- `GetDefaultDimPrioritiesDescriptionTxt(): Text`
- `PostingAfterWorkingDateNotAllowedCode(): Code[50]`
- `ClosingUnreleasedOrdersCode(): Code[50]`
- `ClosingNonCertifiedProductionBOMROUTINGCode(): Code[50]`
- `DefaultDimPrioritiesCode(): Code[50]`
- `MarkBookingAsInvoicedWarningCode(): Code[50]`
- `AutomaticLineItemsDialogCode(): Code[50]`
- `GetClosingUnpostedDocumentNotificationId(): Guid`
- `GetDocumentTypeInvoiceFilter(): Text`
- `GetOpeningPostedDocumentNotificationId(): Guid`
- `GetMarkBookingAsInvoicedWarningNotificationId(): Guid`
- `GetOfficeUpdateNotificationId(): Guid`
- `GetPostingAfterWorkingDateNotificationId(): Guid`
- `GetClosingUnreleasedOrdersNotificationId(): Guid`
- `GetDefaultDimPrioritiesNotificationId(): Guid`
- `GetAutomaticLineItemsDialogNotificationId(): Guid`
- `GetClosingProductionBOMNotificationId(): Guid`
- `InsertDefaultUnpostedDoucumentNotification()`
- `ShowPostedDocument(RecVariant: Variant; CalledFromPageId: Integer)`

## Triggers

OnRun

## Called by

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 408 "DimensionManagement"](../codeunit/408.md) (6 calls: `DontNotifyCurrentUserAgain → GetDefaultDimPrioritiesDescriptionTxt`, `DontNotifyCurrentUserAgain → GetDefaultDimPrioritiesNotificationId`, `DontNotifyCurrentUserAgain → GetDefaultDimPrioritiesTxt`, …)
- [Page 42 "Sales Order"](../page/42.md) (6 calls: `OnQueryClosePage → ShowConfirmUnreleased`, `PostSalesOrder → IsEnabled`, `PostSalesOrder → ShowPostedConfirmationMessageCode`, …)
- [Page 50 "Purchase Order"](../page/50.md) (6 calls: `OnQueryClosePage → ShowConfirmUnreleased`, `PostDocument → IsEnabled`, `PostDocument → ShowPostedConfirmationMessageCode`, …)
- [Page 43 "Sales Invoice"](../page/43.md) (5 calls: `PostDocument → IsEnabled`, `PostDocument → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowConfirm`, …)
- [Page 44 "Sales Credit Memo"](../page/44.md) (5 calls: `PostDocument → IsEnabled`, `PostDocument → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowConfirm`, …)
- [Page 51 "Purchase Invoice"](../page/51.md) (5 calls: `PostDocument → IsEnabled`, `PostDocument → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowConfirm`, …)
- [Page 52 "Purchase Credit Memo"](../page/52.md) (5 calls: `PostDocument → IsEnabled`, `PostDocument → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowConfirm`, …)
- [Page 6630 "Sales Return Order"](../page/6630.md) (5 calls: `PostDocument → IsEnabled`, `PostDocument → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowConfirm`, …)
- [Page 6640 "Purchase Return Order"](../page/6640.md) (5 calls: `PostDocument → IsEnabled`, `PostDocument → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowConfirm`, …)
- [Page 6910 "Expense Report"](../page/6910.md) (5 calls: `PostDocument → IsEnabled`, `PostDocument → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowConfirm`, …)
- [Page 6980 "Manager Expense Report"](../page/6980.md) (5 calls: `PostDocument → IsEnabled`, `PostDocument → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowConfirm`, …)
- [Page 9309 "Purchase Credit Memos"](../page/9309.md) (5 calls: `PostDocument → IsEnabled`, `PostDocument → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowConfirm`, …)
- [Table 36 "Sales Header"](../table/36.md) (5 calls: `ConfirmCloseUnposted → IsUnpostedEnabledForRecord`, `ConfirmCloseUnposted → QueryPostOnCloseCode`, `ConfirmCloseUnposted → ShowConfirm`, …)
- [Table 38 "Purchase Header"](../table/38.md) (5 calls: `ConfirmCloseUnposted → IsUnpostedEnabledForRecord`, `ConfirmCloseUnposted → QueryPostOnCloseCode`, `ConfirmCloseUnposted → ShowConfirm`, …)
- [Codeunit 1637 "Office Document Handler"](../codeunit/1637.md) (4 calls: `DisableSuggestedLinesOnDisableMessage → AutomaticLineItemsDialogCode`, `DisableSuggestedLinesOnDisableMessage → DisableMessageForCurrentUser`, `GenerateLinesForDocument → AutomaticLineItemsDialogCode`, …)
- [Codeunit 48 "PostingSetupManagement"](../codeunit/48.md) (3 calls: `ConfirmPostingAfterWorkingDate → GetPostingAfterWorkingDateNotificationId`, `ConfirmPostingAfterWorkingDate → IsMyNotificationEnabled`, `IsPostingSetupNotificationEnabled → IsMyNotificationEnabled`)
- [Page 5900 "Service Order"](../page/5900.md) (3 calls: `ShowPostedConfirmationMessage → ShowConfirm`, `ShowPostedConfirmationMessage → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowPostedDocument`)
- [Page 5933 "Service Invoice"](../page/5933.md) (3 calls: `ShowPostedConfirmationMessage → ShowConfirm`, `ShowPostedConfirmationMessage → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowPostedDocument`)
- [Page 5935 "Service Credit Memo"](../page/5935.md) (3 calls: `ShowPostedConfirmationMessage → ShowConfirm`, `ShowPostedConfirmationMessage → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowPostedDocument`)
- [Page 9301 "Sales Invoice List"](../page/9301.md) (3 calls: `ShowPostedConfirmationMessage → ShowConfirm`, `ShowPostedConfirmationMessage → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowPostedDocument`)
- [Page 9302 "Sales Credit Memos"](../page/9302.md) (3 calls: `ShowPostedConfirmationMessage → ShowConfirm`, `ShowPostedConfirmationMessage → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowPostedDocument`)
- [Page 9308 "Purchase Invoices"](../page/9308.md) (3 calls: `ShowPostedConfirmationMessage → ShowConfirm`, `ShowPostedConfirmationMessage → ShowPostedConfirmationMessageCode`, `ShowPostedConfirmationMessage → ShowPostedDocument`)
- [Table 5900 "Service Header"](../table/5900.md) (3 calls: `ConfirmCloseUnposted → IsUnpostedEnabledForRecord`, `ConfirmCloseUnposted → QueryPostOnCloseCode`, `ConfirmCloseUnposted → ShowConfirm`)
- [Codeunit 1640 "Add-in Deployment Helper"](../codeunit/1640.md) (2 calls: `CheckVersion → IsEnabled`, `CheckVersion → OfficeUpdateNotificationCode`)
- [Codeunit 312 "Cust-Check Cr. Limit"](../codeunit/312.md) (2 calls: `SalesHeaderCheck → IsEnabled`, `SalesLineCheck → IsEnabled`)
- [Codeunit 9070 "Document Errors Mgt."](../codeunit/9070.md) (2 calls: `IsBackgroundValidationNotificationEnabled → IsMyNotificationEnabled`, `IsShowDocumentCheckFactboxNotificationEnabled → IsMyNotificationEnabled`)
- [Page 1607 "Office Update Available Dlg"](../page/1607.md) (2 calls: `OnQueryClosePage → DisableMessageForCurrentUser`, `OnQueryClosePage → OfficeUpdateNotificationCode`)
- [Codeunit 5323 "Exchange Add-in Setup"](../codeunit/5323.md) (1 call: `DeployAddin → OfficeUpdateNotificationCode`)
- [Page 99000766 "Routing"](../page/99000766.md) (1 call: `OnQueryClosePage → ShowConfirmNonCertified`)
- [Page 99000786 "Production BOM"](../page/99000786.md) (1 call: `OnQueryClosePage → ShowConfirmNonCertified`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC27

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Instruction Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
