{"title":"Codeunit 30163 Shpfy Order Mapping, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30163-shpfy-order-mapping/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":30163,"name":"Shpfy Order Mapping","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30163-shpfy-order-mapping/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30163-shpfy-order-mapping/source/","path":"src/Apps/W1/Shopify/App/src/Order handling/Codeunits/ShpfyOrderMapping.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:30118":{"name":"Shpfy Order Header","url":"https://jonas-paprotka.de/ref/table/30118-shpfy-order-header/"},"codeunit:30162":{"name":"Shpfy Order Events","url":"https://jonas-paprotka.de/ref/codeunit/30162-shpfy-order-events/"},"codeunit:30118":{"name":"Shpfy Customer Mapping","url":"https://jonas-paprotka.de/ref/codeunit/30118-shpfy-customer-mapping/"},"codeunit:30303":{"name":"Shpfy Company Mapping","url":"https://jonas-paprotka.de/ref/codeunit/30303-shpfy-company-mapping/"},"codeunit:30180":{"name":"Shpfy Product Import","url":"https://jonas-paprotka.de/ref/codeunit/30180-shpfy-product-import/"},"table:30119":{"name":"Shpfy Order Line","url":"https://jonas-paprotka.de/ref/table/30119-shpfy-order-line/"},"codeunit:30286":{"name":"Shpfy Company API","url":"https://jonas-paprotka.de/ref/codeunit/30286-shpfy-company-api/"},"codeunit:30164":{"name":"Shpfy Order Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/30164-shpfy-order-mgt/"}},"procs":[{"name":"DoMapping","line":29,"kind":"procedure","access":"internal","params":1,"steps":[[42,"write",30118,"Modify"],[50,"write",30118,"Modify"],[58,"write",30118,"Modify"],[62,"call","MapHeaderFields",3],[64,"call","MapB2BHeaderFields",3],[75,"call","MapVariant",2],[78,"ext","codeunit",30162,"OnAfterMapShopifyOrder",2]]},{"name":"MapHeaderFields","line":88,"kind":"procedure","access":"internal","params":3,"steps":[[96,"ext","codeunit",30118,"SetShop",1],[98,"ext","codeunit",30162,"OnBeforeMapCustomer",2],[109,"ext","codeunit",30118,"DoMapping",5],[121,"ext","codeunit",30118,"DoMapping",5],[131,"call","FindContactNo",2],[133,"call","FindContactNo",2],[134,"call","FindContactNo",2],[136,"ext","codeunit",30162,"OnAfterMapCustomer",1],[140,"call","MapShippingMethodCode",1],[141,"call","MapShippingAgent",1],[142,"call","MapPaymentMethodCode",1],[143,"call","MapTaxArea",1],[144,"write",30118,"Modify"]]},{"name":"MapB2BHeaderFields","line":148,"kind":"procedure","access":"internal","params":3,"steps":[[157,"ext","codeunit",30303,"SetShop",1],[159,"ext","codeunit",30162,"OnBeforeMapCompany",2],[162,"call","MapSellToBillToCustomersFromCompanyLocation",1],[165,"ext","codeunit",30303,"DoMapping",3],[175,"call","FindContactNo",2],[177,"call","FindContactNo",2],[179,"call","FindContactNo",2],[180,"ext","codeunit",30162,"OnAfterMapCompany",1],[184,"call","MapShippingMethodCode",1],[185,"call","MapShippingAgent",1],[186,"call","MapPaymentMethodCode",1],[187,"call","MapLocationCode",1],[188,"call","MapTaxArea",1],[189,"write",30118,"Modify"]]},{"name":"MapVariant","line":199,"kind":"procedure","access":"local","params":2,"steps":[[207,"ext","codeunit",30180,"SetShop",1],[208,"ext","codeunit",30180,"SetProduct",1],[209,"run","codeunit",30180],[232,"write",30119,"Modify"]]},{"name":"MapShippingMethodCode","line":254,"kind":"procedure","access":"local","params":1,"steps":[[261,"ext","codeunit",30162,"OnBeforeMapShipmentMethod",2],[267,"ext","codeunit",30162,"OnAfterMapShipmentMethod",1]]},{"name":"MapShippingAgent","line":272,"kind":"procedure","access":"local","params":1,"steps":[[279,"ext","codeunit",30162,"OnBeforeMapShipmentAgent",2],[287,"ext","codeunit",30162,"OnAfterMapShipmentAgent",1]]},{"name":"MapPaymentMethodCode","line":292,"kind":"procedure","access":"local","params":1,"steps":[[299,"ext","codeunit",30162,"OnBeforeMapPaymentMethod",2],[311,"ext","codeunit",30162,"OnAfterMapPaymentMethod",1],[318,"ext","codeunit",30162,"OnAfterMapPaymentMethod",1]]},{"name":"MapLocationCode","line":322,"kind":"procedure","access":"local","params":1,"steps":[[339,"ext","codeunit",30286,"SetShop",1],[340,"ext","codeunit",30286,"UpdateShopifyCompanyLocation",2]]},{"name":"MapTaxArea","line":372,"kind":"procedure","access":"local","params":1,"steps":[[380,"ext","codeunit",30164,"FindTaxArea",2]]}]}