{"title":"Codeunit 30343 Shpfy Create Item As Variant, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30343-shpfy-create-item-as-variant/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":30343,"name":"Shpfy Create Item As Variant","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30343-shpfy-create-item-as-variant/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30343-shpfy-create-item-as-variant/source/","path":"src/Apps/W1/Shopify/App/src/Products/Codeunits/ShpfyCreateItemAsVariant.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:30174":{"name":"Shpfy Create Product","url":"https://jonas-paprotka.de/ref/codeunit/30174-shpfy-create-product/"},"codeunit:30178":{"name":"Shpfy Product Export","url":"https://jonas-paprotka.de/ref/codeunit/30178-shpfy-product-export/"},"codeunit:30177":{"name":"Shpfy Product Events","url":"https://jonas-paprotka.de/ref/codeunit/30177-shpfy-product-events/"},"table:30129":{"name":"Shpfy Variant","url":"https://jonas-paprotka.de/ref/table/30129-shpfy-variant/"},"codeunit:30189":{"name":"Shpfy Variant API","url":"https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/"},"table:30127":{"name":"Shpfy Product","url":"https://jonas-paprotka.de/ref/table/30127-shpfy-product/"},"codeunit:30176":{"name":"Shpfy Product API","url":"https://jonas-paprotka.de/ref/codeunit/30176-shpfy-product-api/"},"codeunit:30103":{"name":"Shpfy Communication Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/30103-shpfy-communication-mgt/"}},"procs":[{"name":"OnRun","line":26,"kind":"trigger","steps":[[28,"call","CreateVariantFromItem",1]]},{"name":"CreateVariantFromItem","line":35,"kind":"procedure","access":"internal","params":1,"steps":[[45,"ext","codeunit",30174,"CreateTempShopifyVariantFromItem",2],[49,"ext","codeunit",30178,"GetItemAttributeIDsMarkedAsOption",2],[54,"call","UpdateProductOption",0],[60,"ext","codeunit",30178,"SetShop",1],[61,"ext","codeunit",30178,"ValidateItemAttributesAsProductOptionsForNewVariant",4],[65,"ext","codeunit",30177,"OnAfterCreateTempShopifyVariant",2],[66,"write",30129,"Modify"],[68,"ext","codeunit",30189,"AddProductVariant",3],[70,"write",30127,"Modify",1]]},{"name":"CheckProductAndShopSettings","line":79,"kind":"procedure","access":"internal","params":0,"steps":[[92,"ext","codeunit",30176,"GetProductOptions",1],[95,"ext","codeunit",30178,"GetItemAttributeIDsMarkedAsOption",2],[101,"call","VerifyProductOptionsMatchesItemAttributes",2],[103,"ext","codeunit",30103,"GetIdOfGId",1]]},{"name":"SetParentProduct","line":111,"kind":"procedure","access":"internal","params":1,"steps":[[114,"call","SetShop",1]]},{"name":"UpdateProductOption","line":117,"kind":"procedure","access":"local","params":1,"steps":[[119,"ext","codeunit",30176,"UpdateProductOption",3]]},{"name":"SetShop","line":145,"kind":"procedure","access":"local","params":1,"steps":[[148,"ext","codeunit",30189,"SetShop",1],[149,"ext","codeunit",30176,"SetShop",1],[150,"ext","codeunit",30174,"SetShop",1]]}]}