{"title":"Codeunit 1330 Instruction Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1330-instruction-mgt/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":1330,"name":"Instruction Mgt.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1330-instruction-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1330-instruction-mgt/source/","path":"src/Layers/W1/BaseApp/Utilities/InstructionMgt.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:1306":{"name":"User Preference","url":"https://jonas-paprotka.de/ref/table/1306-user-preference/"},"table:1518":{"name":"My Notifications","url":"https://jonas-paprotka.de/ref/table/1518-my-notifications/"},"page:1518":{"name":"My Notifications","url":"https://jonas-paprotka.de/ref/page/1518-my-notifications/"},"codeunit:1330":{"name":"Instruction Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1330-instruction-mgt/"}},"procs":[{"name":"ShowConfirm","line":43,"kind":"procedure","params":2,"steps":[[45,"call","IsEnabled",1]]},{"name":"ShowConfirmUnreleased","line":53,"kind":"procedure","params":0,"steps":[[55,"call","ShowConfirm",2],[55,"call","ClosingUnreleasedOrdersCode",0]]},{"name":"ShowConfirmNonCertified","line":58,"kind":"procedure","params":0,"steps":[[60,"call","ShowConfirm",2],[60,"call","ClosingNonCertifiedProductionBOMROUTINGCode",0]]},{"name":"DisableMessageForCurrentUser","line":63,"kind":"procedure","params":1,"steps":[[67,"ext","table",1306,"DisableInstruction",1]]},{"name":"EnableMessageForCurrentUser","line":70,"kind":"procedure","params":1,"steps":[[74,"ext","table",1306,"EnableInstruction",1]]},{"name":"IsEnabled","line":77,"kind":"procedure","params":1,"steps":[[83,"event","OnAfterIsEnabled",0]]},{"name":"IsUnpostedEnabledForRecord","line":86,"kind":"procedure","params":1,"steps":[[92,"event","OnBeforeIsUnpostedEnabledForRecord",1],[94,"ext","table",1518,"IsEnabledForRecord",2],[94,"call","GetClosingUnpostedDocumentNotificationId",0]]},{"name":"CreateMissingMyNotificationsWithDefaultState","line":107,"kind":"procedure","params":1,"steps":[[113,"ext","page",1518,"InitializeNotificationsWithDefaultState",0]]},{"name":"InsertDefaultUnpostedDoucumentNotification","line":224,"kind":"procedure","params":0,"steps":[[228,"event","OnBeforeInsertDefaultUnpostedDoucumentNotification",0],[229,"ext","table",1518,"InsertDefaultWithTableNumAndFilter",5],[229,"call","GetClosingUnpostedDocumentNotificationId",0],[233,"call","GetDocumentTypeInvoiceFilter",0]]},{"name":"ShowPostedDocument","line":236,"kind":"procedure","params":2,"steps":[[255,"event","OnShowPostedDocumentOnBeforePageRun",0]]},{"name":"OnInitializingNotificationWithDefaultState","line":260,"kind":"procedure","access":"local","params":0,"steps":[[264,"call","InsertDefaultUnpostedDoucumentNotification",0],[265,"ext","table",1518,"InsertDefault",4],[265,"call","GetOpeningPostedDocumentNotificationId",0],[268,"call","IsEnabled",1],[268,"call","ShowPostedConfirmationMessageCode",0],[269,"ext","table",1518,"InsertDefault",4],[269,"call","GetPostingAfterWorkingDateNotificationId",0],[272,"call","IsEnabled",1],[272,"call","PostingAfterWorkingDateNotAllowedCode",0],[273,"ext","table",1518,"InsertDefault",4],[273,"call","GetMarkBookingAsInvoicedWarningNotificationId",0],[276,"call","IsEnabled",1],[276,"call","MarkBookingAsInvoicedWarningCode",0],[277,"ext","table",1518,"InsertDefault",4],[277,"call","GetAutomaticLineItemsDialogNotificationId",0],[280,"call","IsEnabled",1],[280,"call","AutomaticLineItemsDialogCode",0],[281,"ext","table",1518,"InsertDefault",4],[281,"call","GetOfficeUpdateNotificationId",0],[284,"call","IsEnabled",1],[284,"call","OfficeUpdateNotificationCode",0],[285,"ext","table",1518,"InsertDefault",4],[285,"call","GetClosingUnreleasedOrdersNotificationId",0],[288,"call","IsEnabled",1],[288,"call","ClosingUnreleasedOrdersCode",0],[289,"ext","table",1518,"InsertDefault",4],[289,"call","GetDefaultDimPrioritiesNotificationId",0],[292,"call","IsEnabled",1],[292,"call","DefaultDimPrioritiesCode",0],[293,"ext","table",1518,"InsertDefault",4],[293,"call","GetClosingProductionBOMNotificationId",0],[296,"call","IsEnabled",1],[296,"call","ClosingNonCertifiedProductionBOMROUTINGCode",0]]},{"name":"OnAfterIsNotificationEnabled","line":300,"kind":"procedure","access":"local","params":1,"steps":[[306,"ext","codeunit",1330,"GetClosingUnpostedDocumentNotificationId",0],[307,"ext","codeunit",1330,"InsertDefaultUnpostedDoucumentNotification",0]]},{"name":"OnStateChanged","line":311,"kind":"procedure","access":"local","params":2,"steps":[[314,"call","GetClosingUnpostedDocumentNotificationId",0],[316,"call","EnableMessageForCurrentUser",1],[316,"call","QueryPostOnCloseCode",0],[318,"call","DisableMessageForCurrentUser",1],[318,"call","QueryPostOnCloseCode",0],[319,"call","GetOpeningPostedDocumentNotificationId",0],[321,"call","EnableMessageForCurrentUser",1],[321,"call","ShowPostedConfirmationMessageCode",0],[323,"call","DisableMessageForCurrentUser",1],[323,"call","ShowPostedConfirmationMessageCode",0],[324,"call","GetAutomaticLineItemsDialogNotificationId",0],[326,"call","EnableMessageForCurrentUser",1],[326,"call","AutomaticLineItemsDialogCode",0],[328,"call","DisableMessageForCurrentUser",1],[328,"call","AutomaticLineItemsDialogCode",0],[329,"call","GetPostingAfterWorkingDateNotificationId",0],[331,"call","EnableMessageForCurrentUser",1],[331,"call","PostingAfterWorkingDateNotAllowedCode",0],[333,"call","DisableMessageForCurrentUser",1],[333,"call","PostingAfterWorkingDateNotAllowedCode",0],[334,"call","GetClosingUnreleasedOrdersNotificationId",0],[336,"call","EnableMessageForCurrentUser",1],[336,"call","ClosingUnreleasedOrdersCode",0],[338,"call","DisableMessageForCurrentUser",1],[338,"call","ClosingUnreleasedOrdersCode",0],[339,"call","GetDefaultDimPrioritiesNotificationId",0],[341,"call","EnableMessageForCurrentUser",1],[341,"call","DefaultDimPrioritiesCode",0],[343,"call","DisableMessageForCurrentUser",1],[343,"call","DefaultDimPrioritiesCode",0],[344,"call","GetClosingProductionBOMNotificationId",0],[346,"call","EnableMessageForCurrentUser",1],[346,"call","ClosingNonCertifiedProductionBOMROUTINGCode",0],[348,"call","DisableMessageForCurrentUser",1],[348,"call","ClosingNonCertifiedProductionBOMROUTINGCode",0]]}]}