{"title":"Codeunit 30174 Shpfy Create Product, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30174-shpfy-create-product/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":30174,"name":"Shpfy Create Product","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30174-shpfy-create-product/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30174-shpfy-create-product/source/","path":"src/Apps/W1/Shopify/App/src/Products/Codeunits/ShpfyCreateProduct.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":{"codeunit:30198":{"name":"Shpfy Sync Shop Locations","url":"https://jonas-paprotka.de/ref/codeunit/30198-shpfy-sync-shop-locations/"},"codeunit:30178":{"name":"Shpfy Product Export","url":"https://jonas-paprotka.de/ref/codeunit/30178-shpfy-product-export/"},"codeunit:30189":{"name":"Shpfy Variant API","url":"https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/"},"codeunit:30176":{"name":"Shpfy Product API","url":"https://jonas-paprotka.de/ref/codeunit/30176-shpfy-product-api/"},"codeunit:30313":{"name":"Shpfy Skipped Record","url":"https://jonas-paprotka.de/ref/codeunit/30313-shpfy-skipped-record/"},"codeunit:30182":{"name":"Shpfy Product Price Calc.","url":"https://jonas-paprotka.de/ref/codeunit/30182-shpfy-product-price-calc/"},"table:30129":{"name":"Shpfy Variant","url":"https://jonas-paprotka.de/ref/table/30129-shpfy-variant/"},"table:30127":{"name":"Shpfy Product","url":"https://jonas-paprotka.de/ref/table/30127-shpfy-product/"},"codeunit:30177":{"name":"Shpfy Product Events","url":"https://jonas-paprotka.de/ref/codeunit/30177-shpfy-product-events/"},"codeunit:30175":{"name":"Shpfy Item Reference Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/30175-shpfy-item-reference-mgt/"},"page:30117":{"name":"Shpfy Shop Locations Mapping","url":"https://jonas-paprotka.de/ref/page/30117-shpfy-shop-locations-mapping/"}},"procs":[{"name":"OnRun","line":35,"kind":"trigger","steps":[[40,"run","codeunit",30198],[47,"call","CreateProduct",1]]},{"name":"CreateProduct","line":54,"kind":"procedure","access":"local","params":1,"steps":[[60,"ext","codeunit",30178,"CheckItemAttributesCompatibleForProductOptions",1],[63,"call","CreateTempProduct",4],[66,"ext","codeunit",30189,"FindShopifyProductVariant",2],[67,"ext","codeunit",30176,"CreateProduct",3],[72,"ext","codeunit",30178,"UpdateProductTranslations",2]]},{"name":"CreateTempProduct","line":75,"kind":"procedure","access":"internal","params":4,"steps":[[86,"ext","codeunit",30178,"FillInProductFields",2],[89,"ext","codeunit",30178,"CheckItemVariantCount",1],[95,"ext","codeunit",30313,"LogSkippedRecord",3],[106,"call","GetBarcode",3],[107,"ext","codeunit",30182,"CalcPrice",6],[110,"call","GetVariantSKU",4],[115,"ext","codeunit",30178,"GetCountryISOCode",1],[125,"write",30129,"Insert"],[132,"call","GetBarcode",3],[133,"ext","codeunit",30182,"CalcPrice",6],[136,"call","GetVariantSKU",4],[136,"call","GetVendorItemNo",3],[141,"ext","codeunit",30178,"GetCountryISOCode",1],[148,"write",30129,"Insert"],[162,"call","GetBarcode",3],[163,"ext","codeunit",30182,"CalcPrice",6],[166,"call","GetVariantSKU",4],[171,"ext","codeunit",30178,"GetCountryISOCode",1],[178,"write",30129,"Insert"],[181,"call","CreateTempShopifyVariantFromItem",2],[183,"ext","codeunit",30178,"FillProductOptionsForShopifyVariants",3],[184,"write",30127,"Insert"],[185,"ext","codeunit",30177,"OnAfterCreateTempShopifyProduct",4]]},{"name":"GetBarcode","line":195,"kind":"procedure","access":"local","params":3,"steps":[[199,"ext","codeunit",30175,"GetItemBarcode",3]]},{"name":"GetVendorItemNo","line":209,"kind":"procedure","access":"local","params":3,"steps":[[215,"ext","codeunit",30175,"GetItemReference",5]]},{"name":"CreateTempShopifyVariantFromItem","line":243,"kind":"procedure","access":"internal","params":2,"steps":[[247,"call","GetBarcode",3],[248,"ext","codeunit",30182,"CalcPrice",6],[251,"call","GetVariantSKU",4],[256,"ext","codeunit",30178,"GetCountryISOCode",1],[260,"write",30129,"Insert"]]},{"name":"SetShop","line":267,"kind":"procedure","access":"internal","params":1,"steps":[[272,"ext","codeunit",30176,"SetShop",1],[273,"ext","codeunit",30189,"SetShop",1],[274,"ext","codeunit",30182,"SetShop",1],[275,"ext","codeunit",30178,"SetShop",1]]},{"name":"ChangeDefaultProductLocation","line":294,"kind":"procedure","access":"internal","params":1,"steps":[[301,"run","page",30117]]}]}