{"title":"Codeunit 5772 Whse.-Purch. Release, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5772-whse-purch-release/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":5772,"name":"Whse.-Purch. Release","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5772-whse-purch-release/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5772-whse-purch-release/source/","path":"src/Layers/W1/BaseApp/Purchases/Document/WhsePurchRelease.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:39":{"name":"Purchase Line","url":"https://jonas-paprotka.de/ref/table/39-purchase-line/"},"table:5765":{"name":"Warehouse Request","url":"https://jonas-paprotka.de/ref/table/5765-warehouse-request/"},"table:14":{"name":"Location","url":"https://jonas-paprotka.de/ref/table/14-location/"}},"procs":[{"name":"Release","line":23,"kind":"procedure","params":1,"steps":[[32,"event","OnBeforeRelease",1],[52,"event","OnAfterReleaseSetFilters",0],[56,"ext","table",39,"IsInventoriableItem",0],[56,"ext","table",39,"IsWorkCenter",0],[57,"event","OnReleaseOnBeforeCreateWhseRequest",0],[65,"event","OnReleaseOnAfterSetWhseType",0],[67,"call","CreateWarehouseRequest",3],[69,"event","OnReleaseOnAfterCreateWhseRequest",0],[78,"call","FilterWarehouseRequest",3],[80,"write",5765,"DeleteAll",1],[82,"event","OnAfterRelease",0]]},{"name":"Reopen","line":85,"kind":"procedure","params":1,"steps":[[90,"event","OnBeforeReopen",1],[94,"call","FilterWarehouseRequest",3],[96,"write",5765,"ModifyAll"],[98,"event","OnAfterReopen",0]]},{"name":"UpdateExternalDocNoForReleasedOrder","line":102,"kind":"procedure","params":1,"steps":[[104,"call","FilterWarehouseRequest",3],[106,"write",5765,"ModifyAll"]]},{"name":"CreateWarehouseRequest","line":109,"kind":"procedure","params":3,"steps":[[114,"event","OnBeforeProcedureCreateWhseRequest",1],[116,"call","ShouldCreateWarehouseRequest",2],[140,"event","OnBeforeCreateWhseRequest",0],[141,"write",5765,"Insert"],[142,"write",5765,"Modify"],[144,"event","OnAfterCreateWhseRqst",0]]},{"name":"FilterWarehouseRequest","line":148,"kind":"procedure","access":"local","params":3,"steps":[[157,"event","OnAfterFilterWarehouseRequest",0]]},{"name":"ShouldCreateWarehouseRequest","line":160,"kind":"procedure","access":"local","params":2,"steps":[[168,"ext","table",14,"RequireShipment",1],[169,"ext","table",14,"RequirePicking",1],[171,"ext","table",14,"RequireReceive",1],[172,"ext","table",14,"RequirePutaway",1],[174,"event","OnAfterShouldCreateWarehouseRequest",0]]}]}