{"title":"Codeunit 1390 Document Notifications, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1390-document-notifications/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":1390,"name":"Document Notifications","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1390-document-notifications/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1390-document-notifications/source/","path":"src/Layers/W1/BaseApp/Utilities/DocumentNotifications.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":{"page:1330":{"name":"Update Address","url":"https://jonas-paprotka.de/ref/page/1330-update-address/"},"table:18":{"name":"Customer","url":"https://jonas-paprotka.de/ref/table/18-customer/"},"table:36":{"name":"Sales Header","url":"https://jonas-paprotka.de/ref/table/36-sales-header/"},"table:23":{"name":"Vendor","url":"https://jonas-paprotka.de/ref/table/23-vendor/"},"page:29":{"name":"Vendor Ledger Entries","url":"https://jonas-paprotka.de/ref/page/29-vendor-ledger-entries/"},"page:118":{"name":"General Ledger Setup","url":"https://jonas-paprotka.de/ref/page/118-general-ledger-setup/"},"page:119":{"name":"User Setup","url":"https://jonas-paprotka.de/ref/page/119-user-setup/"},"table:38":{"name":"Purchase Header","url":"https://jonas-paprotka.de/ref/table/38-purchase-header/"}},"procs":[{"name":"CopySellToCustomerAddressFieldsFromSalesDocument","line":24,"kind":"procedure","params":1,"steps":[[33,"event","OnBeforeCopySellToCustomerAddressFieldsFromSalesDocument",0],[39,"ext","page",1330,"SetName",1],[40,"ext","page",1330,"SetExistingAddress",1],[40,"call","GetCustomerFullAddress",1],[41,"ext","page",1330,"SetUpdatedAddress",1],[41,"call","GetSalesHeaderFullSellToAddress",1],[44,"ext","table",18,"SetAddress",7],[47,"event","OnCopySellToCustomerAddressFieldsFromSalesDocumentOnBeforeModify",0],[48,"write",18,"Modify",1]]},{"name":"CopyBillToCustomerAddressFieldsFromSalesDocument","line":53,"kind":"procedure","params":1,"steps":[[62,"event","OnBeforeCopyBillToCustomerAddressFieldsFromSalesDocument",0],[68,"ext","page",1330,"SetExistingAddress",1],[68,"call","GetCustomerFullAddress",1],[69,"ext","page",1330,"SetName",1],[70,"ext","page",1330,"SetUpdatedAddress",1],[70,"call","GetSalesHeaderFullBillToAddress",1],[73,"ext","table",18,"SetAddress",7],[76,"event","OnCopyBillToCustomerAddressFieldsFromSalesDocumentOnBeforeModify",0],[77,"write",18,"Modify",1]]},{"name":"GetCustomerFullAddress","line":82,"kind":"procedure","access":"local","params":1,"steps":[[94,"call","FormatAddress",1],[95,"event","OnAfterGetCustomerFullAddress",0]]},{"name":"GetSalesHeaderFullSellToAddress","line":98,"kind":"procedure","access":"local","params":1,"steps":[[110,"call","FormatAddress",1]]},{"name":"GetSalesHeaderFullBillToAddress","line":113,"kind":"procedure","access":"local","params":1,"steps":[[125,"call","FormatAddress",1]]},{"name":"HideNotificationForCurrentUser","line":143,"kind":"procedure","params":1,"steps":[[147,"ext","table",36,"DontNotifyCurrentUserAgain",1]]},{"name":"EnableModifyCustomerAddressNotificationOnInitializingWithDefaultState","line":151,"kind":"procedure","access":"local","params":0,"steps":[[155,"ext","table",36,"SetModifyCustomerAddressNotificationDefaultState",0]]},{"name":"EnableModifyBillToCustomerAddressNotificationOnInitializingWithDefaultState","line":159,"kind":"procedure","access":"local","params":0,"steps":[[163,"ext","table",36,"SetModifyBillToCustomerAddressNotificationDefaultState",0]]},{"name":"CopyBuyFromVendorAddressFieldsFromSalesDocument","line":166,"kind":"procedure","params":1,"steps":[[175,"event","OnBeforeCopyBuyFromVendorAddressFieldsFromSalesDocument",0],[181,"ext","page",1330,"SetName",1],[182,"ext","page",1330,"SetExistingAddress",1],[182,"call","GetVendorFullAddress",1],[183,"ext","page",1330,"SetUpdatedAddress",1],[183,"call","GetPurchaseHeaderFullBuyFromAddress",1],[186,"ext","table",23,"SetAddress",7],[189,"event","OnCopyBuyFromVendorAddressFieldsFromSalesDocumentOnBeforeModify",0],[190,"write",23,"Modify",1]]},{"name":"CopyPayToVendorAddressFieldsFromSalesDocument","line":195,"kind":"procedure","params":1,"steps":[[204,"event","OnBeforeCopyPayToVendorAddressFieldsFromSalesDocument",0],[210,"ext","page",1330,"SetName",1],[211,"ext","page",1330,"SetUpdatedAddress",1],[211,"call","GetPurchaseHeaderFullPayToAddress",1],[212,"ext","page",1330,"SetExistingAddress",1],[212,"call","GetVendorFullAddress",1],[215,"ext","table",23,"SetAddress",7],[218,"event","OnCopyPayToVendorAddressFieldsFromSalesDocumentOnBeforeModify",0],[219,"write",23,"Modify",1]]},{"name":"ShowVendorLedgerEntry","line":224,"kind":"procedure","params":1,"steps":[[236,"run","page",29]]},{"name":"ShowGLSetup","line":239,"kind":"procedure","params":1,"steps":[[244,"run","page",118]]},{"name":"ShowUserSetup","line":247,"kind":"procedure","params":1,"steps":[[252,"run","page",119]]},{"name":"GetVendorFullAddress","line":255,"kind":"procedure","access":"local","params":1,"steps":[[267,"call","FormatAddress",1],[268,"event","OnAfterGetVendorFullAddress",0]]},{"name":"GetPurchaseHeaderFullBuyFromAddress","line":271,"kind":"procedure","access":"local","params":1,"steps":[[283,"call","FormatAddress",1]]},{"name":"GetPurchaseHeaderFullPayToAddress","line":286,"kind":"procedure","access":"local","params":1,"steps":[[298,"call","FormatAddress",1]]},{"name":"HidePurchaseNotificationForCurrentUser","line":301,"kind":"procedure","params":1,"steps":[[305,"ext","table",38,"DontNotifyCurrentUserAgain",1]]},{"name":"EnableModifyVendorAddressNotificationOnInitializingWithDefaultState","line":309,"kind":"procedure","access":"local","params":0,"steps":[[313,"ext","table",38,"SetModifyVendorAddressNotificationDefaultState",0]]},{"name":"EnableModifyPayToVendorAddressNotificationOnInitializingWithDefaultState","line":317,"kind":"procedure","access":"local","params":0,"steps":[[321,"ext","table",38,"SetModifyPayToVendorAddressNotificationDefaultState",0]]},{"name":"EnablePurchExternalDocAlreadyExistNotificationOnInitializingWithDefaultState","line":325,"kind":"procedure","access":"local","params":0,"steps":[[329,"ext","table",38,"SetShowExternalDocAlreadyExistNotificationDefaultState",1]]},{"name":"EnableSalesExternalDocAlreadyExistNotificationOnInitializingWithDefaultState","line":333,"kind":"procedure","access":"local","params":0,"steps":[[337,"ext","table",36,"SetShowExternalDocAlreadyExistNotificationDefaultState",1]]},{"name":"EnableWarningWhenPostingSalesQtyZero","line":341,"kind":"procedure","access":"local","params":0,"steps":[[345,"ext","table",36,"SetWarnZeroQuantitySalesPosting",0]]},{"name":"EnableWarningWhenPostingPurchaseQtyZero","line":349,"kind":"procedure","access":"local","params":0,"steps":[[353,"ext","table",38,"SetWarnZeroQuantityPurchasePosting",0]]}]}