{"title":"Codeunit 5714 Copy Location, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5714-copy-location/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":5714,"name":"Copy Location","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5714-copy-location/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5714-copy-location/source/","path":"src/Layers/W1/BaseApp/Inventory/Location/CopyLocation.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:5711":{"name":"Copy Location","url":"https://jonas-paprotka.de/ref/page/5711-copy-location/"},"table:14":{"name":"Location","url":"https://jonas-paprotka.de/ref/table/14-location/"},"table:352":{"name":"Default Dimension","url":"https://jonas-paprotka.de/ref/table/352-default-dimension/"},"table:7300":{"name":"Zone","url":"https://jonas-paprotka.de/ref/table/7300-zone/"},"table:7354":{"name":"Bin","url":"https://jonas-paprotka.de/ref/table/7354-bin/"},"table:7301":{"name":"Warehouse Employee","url":"https://jonas-paprotka.de/ref/table/7301-warehouse-employee/"},"table:5813":{"name":"Inventory Posting Setup","url":"https://jonas-paprotka.de/ref/table/5813-inventory-posting-setup/"},"table:5742":{"name":"Transfer Route","url":"https://jonas-paprotka.de/ref/table/5742-transfer-route/"},"codeunit:1511":{"name":"Notification Lifecycle Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1511-notification-lifecycle-mgt/"},"page:5703":{"name":"Location Card","url":"https://jonas-paprotka.de/ref/page/5703-location-card/"}},"procs":[{"name":"OnRun","line":18,"kind":"trigger","steps":[[24,"event","OnBeforeOnRun",1],[27,"call","ShowNotification",1],[31,"ext","page",5711,"SetLocation",1],[35,"ext","page",5711,"GetParameters",1],[37,"call","DoCopyLocation",0],[39,"event","OnRunOnAfterLocationCopied",0],[42,"call","ShowCreatedLocation",0],[44,"call","ShowNotification",1]]},{"name":"DoCopyLocation","line":56,"kind":"procedure","params":0,"steps":[[61,"call","CopyLocation",0]]},{"name":"CopyLocation","line":71,"kind":"procedure","access":"local","params":0,"steps":[[75,"event","OnBeforeCopyLocation",0],[77,"call","InitTargetLocation",1],[79,"event","OnCopyLocationOnBeforeTargetLocationInsert",0],[80,"write",14,"Insert"],[82,"call","CopyLocationDimensions",2],[83,"call","CopyZones",2],[84,"call","CopyBins",2],[85,"call","CopyWarehouseEmployees",2],[86,"call","CopyInventoryPostingSetup",2],[87,"call","CopyTransferRoutes",2],[89,"event","OnAfterCopyLocation",0]]},{"name":"InitTargetLocation","line":92,"kind":"procedure","access":"local","params":1,"steps":[[97,"call","CheckExistingLocation",1]]},{"name":"CopyLocationDimensions","line":114,"kind":"procedure","access":"local","params":2,"steps":[[126,"write",352,"Insert"]]},{"name":"CopyZones","line":131,"kind":"procedure","access":"local","params":2,"steps":[[144,"write",7300,"Insert"]]},{"name":"CopyBins","line":148,"kind":"procedure","access":"local","params":2,"steps":[[165,"write",7354,"Insert"]]},{"name":"CopyWarehouseEmployees","line":169,"kind":"procedure","access":"local","params":2,"steps":[[182,"write",7301,"Insert"]]},{"name":"CopyInventoryPostingSetup","line":186,"kind":"procedure","access":"local","params":2,"steps":[[199,"write",5813,"Insert"]]},{"name":"CopyTransferRoutes","line":203,"kind":"procedure","access":"local","params":2,"steps":[[217,"write",5742,"Insert"],[231,"write",5742,"Insert"],[245,"write",5742,"Insert"]]},{"name":"ShowNotification","line":249,"kind":"procedure","access":"local","params":1,"steps":[[259,"ext","codeunit",1511,"SendNotification",2]]},{"name":"ShowCreatedLocation","line":262,"kind":"procedure","params":1,"steps":[[267,"run","page",5703]]},{"name":"ShowCreatedLocation","line":270,"kind":"procedure","access":"local","params":0,"steps":[[275,"run","page",5703]]}]}