{"title":"Codeunit 30189 Shpfy Variant API","url":"https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/","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","changedSince":"2026-09-22","source":{"feed":"https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json","package":"Microsoft.ShopifyConnector.symbols.ec255f57-31d0-4ca2-b751-f2fa7c745abb","build":"29.0.54011.55644","builds":{"20":"20.5.45456.61928","21":"21.5.53619.63803","22":"22.5.59966.64723","23":"23.5.16502.31399","24":"24.5.23489.36097","25":"25.5.30849.36072","26":"26.5.38752.40541","27":"27.5.46862.47359","28":"28.5.54151.54365","29":"29.0.54011.55644"},"code":{"27":{"url":"https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/source/?v=27","repo":"https://github.com/microsoft/BCApps","branch":"releases/27.x","commit":"ad459712441b2fe6cb0cf1c560563f8ec7188a93","path":"src/Apps/W1/Shopify/App/src/Products/Codeunits/ShpfyVariantAPI.Codeunit.al","license":"MIT"},"28":{"url":"https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/source/?v=28","repo":"https://github.com/microsoft/BCApps","branch":"releases/28.x","commit":"408a4cc8d3a4c54b60464cc14c964479facb9ba0","path":"src/Apps/W1/Shopify/App/src/Products/Codeunits/ShpfyVariantAPI.Codeunit.al","license":"MIT"},"29":{"url":"https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/source/","repo":"https://github.com/microsoft/BCApps","branch":"releases/29.x","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","path":"src/Apps/W1/Shopify/App/src/Products/Codeunits/ShpfyVariantAPI.Codeunit.al","license":"MIT"}},"note":"Presence per major, highest build of each; 17 is the oldest major on the feed. Local procedures are not listed."},"object":{"type":"codeunit","id":30189,"name":"Shpfy Variant API","app":"Shopify Connector","appByVersion":[{"app":"Shopify Connector","from":20}],"nameByVersion":[{"name":"Shpfy Variant API","from":20}],"namespace":"Microsoft.Integration.Shopify","versions":"20-29","majors":[20,21,22,23,24,25,26,27,28,29],"countries":["W1","DE","US"],"minors":{"W1":"20.1-29.0","DE":"20.1-29.0","US":"20.1-29.0"},"minorsUrl":"https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/editions.json","extends":null,"extendsUrl":null,"sourceTable":null,"properties":{"access":"Internal"},"extendedBy":[],"implementedBy":[],"sourceFile":"src/Products/Codeunits/ShpfyVariantAPI.Codeunit.al","obsolete":null,"obsoleteSeenFrom":null,"byVersion":{"20":{"app":"Shopify Connector","name":"Shpfy Variant API","ns":"","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":11,"values":0},"stub":false},"21":{"app":"Shopify Connector","name":"Shpfy Variant API","ns":"","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":11,"values":0},"stub":false},"22":{"app":"Shopify Connector","name":"Shpfy Variant API","ns":"","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":11,"values":0},"stub":false},"23":{"app":"Shopify Connector","name":"Shpfy Variant API","ns":"Microsoft.Integration.Shopify","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":13,"values":0},"stub":false},"24":{"app":"Shopify Connector","name":"Shpfy Variant API","ns":"Microsoft.Integration.Shopify","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":13,"values":0},"stub":false},"25":{"app":"Shopify Connector","name":"Shpfy Variant API","ns":"Microsoft.Integration.Shopify","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":14,"values":0},"stub":false},"26":{"app":"Shopify Connector","name":"Shpfy Variant API","ns":"Microsoft.Integration.Shopify","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":13,"values":0},"stub":false},"27":{"app":"Shopify Connector","name":"Shpfy Variant API","ns":"Microsoft.Integration.Shopify","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":13,"values":0},"stub":false},"28":{"app":"Shopify Connector","name":"Shpfy Variant API","ns":"Microsoft.Integration.Shopify","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":18,"values":0},"stub":false},"29":{"app":"Shopify Connector","name":"Shpfy Variant API","ns":"Microsoft.Integration.Shopify","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal"},"counts":{"fields":0,"keys":0,"methods":18,"values":0},"stub":false}},"fields":[],"keys":[],"procedures":[{"name":"FindShopifyProductVariant","sig":"(var Record Shpfy Product, var Record Shpfy Variant)","named":"(var ShopifyProduct: Record \"Shpfy Product\"; var ShopifyVariant: Record \"Shpfy Variant\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(var ShopifyProduct: Record \"Shpfy Product\"; var ShopifyVariant: Record \"Shpfy Variant\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"AddProductVariant","sig":"(var Record Shpfy Variant)","named":"(var ShopifyVariant: Record \"Shpfy Variant\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"20-24","first":20,"last":24,"obsoleteSince":null,"spans":[{"from":20,"to":24,"named":"(var ShopifyVariant: Record \"Shpfy Variant\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"FindShopifyVariantByBarcode","sig":"(var Record Shpfy Variant)","named":"(var ShopifyVariant: Record \"Shpfy Variant\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(var ShopifyVariant: Record \"Shpfy Variant\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"FindShopifyVariantBySKU","sig":"(var Record Shpfy Variant)","named":"(var ShopifyVariant: Record \"Shpfy Variant\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(var ShopifyVariant: Record \"Shpfy Variant\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"RetrieveShopifyProductVaraintImages","sig":"(var Dictionary)","named":"(var ProductVariantImages: Dictionary of [BigInteger, Dictionary of [BigInteger, Text]])","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"20-22","first":20,"last":22,"obsoleteSince":null,"spans":[{"from":20,"to":22,"named":"(var ProductVariantImages: Dictionary of [BigInteger, Dictionary of [BigInteger, Text]])","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"RetrieveShopifyProductVariantIds","sig":"(Record Shpfy Product, var Dictionary)","named":"(ShopifyProduct: Record \"Shpfy Product\"; var ProductVariantIds: Dictionary of [BigInteger, DateTime])","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(ShopifyProduct: Record \"Shpfy Product\"; var ProductVariantIds: Dictionary of [BigInteger, DateTime])","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"RetrieveShopifyVariant","sig":"(Record Shpfy Product, var Record Shpfy Variant, var Record Shpfy Inventory Item)","named":"(ShopifyProduct: Record \"Shpfy Product\"; var ShopifyVariant: Record \"Shpfy Variant\"; var ShopifyInventoryItem: Record \"Shpfy Inventory Item\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(ShopifyProduct: Record \"Shpfy Product\"; var ShopifyVariant: Record \"Shpfy Variant\"; var ShopifyInventoryItem: Record \"Shpfy Inventory Item\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"SetShop","sig":"(Code[20])","named":"(Code: Code[20])","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"20-25","first":20,"last":25,"obsoleteSince":null,"spans":[{"from":20,"to":25,"named":"(Code: Code[20])","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"SetShop","sig":"(Record Shpfy Shop)","named":"(ShopifyShop: Record \"Shpfy Shop\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(ShopifyShop: Record \"Shpfy Shop\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"UpdateProductVariant","sig":"(Record Shpfy Variant, Record Shpfy Variant)","named":"(ShopifyVariant: Record \"Shpfy Variant\"; xShopifyVariant: Record \"Shpfy Variant\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"20-26","first":20,"last":26,"obsoleteSince":null,"spans":[{"from":20,"to":26,"named":"(ShopifyVariant: Record \"Shpfy Variant\"; xShopifyVariant: Record \"Shpfy Variant\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"UpdateShopifyVariantFields","sig":"(Record Shpfy Product, var Record Shpfy Variant, var Record Shpfy Inventory Item, JsonObject)","named":"(ShopifyProduct: Record \"Shpfy Product\"; var ShopifyVariant: Record \"Shpfy Variant\"; var ShopifyInventoryItem: Record \"Shpfy Inventory Item\"; JVariant: JsonObject)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":28,"named":"(ShopifyProduct: Record \"Shpfy Product\"; var ShopifyVariant: Record \"Shpfy Variant\"; var ShopifyInventoryItem: Record \"Shpfy Inventory Item\"; JVariant: JsonObject)","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null},{"from":29,"to":29,"named":"(ShopifyProduct: Record \"Shpfy Product\"; var ShopifyVariant: Record \"Shpfy Variant\"; var ShopifyInventoryItem: Record \"Shpfy Inventory Item\"; JVariant: JsonObject)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"RetrieveShopifyProductVariantImages","sig":"(var Dictionary)","named":"(var ProductVariantImages: Dictionary of [BigInteger, Dictionary of [BigInteger, Text]])","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var ProductVariantImages: Dictionary of [BigInteger, Dictionary of [BigInteger, Text]])","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"UpdateProductPrice","sig":"(Record Shpfy Variant, Record Shpfy Variant, var TextBuilder, var List, Integer)","named":"(ShopifyVariant: Record \"Shpfy Variant\"; xShopifyVariant: Record \"Shpfy Variant\"; var BulkOperationInput: TextBuilder; var GraphQueryList: List of [TextBuilder]; RecordCount: Integer)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"23-25","first":23,"last":25,"obsoleteSince":null,"spans":[{"from":23,"to":25,"named":"(ShopifyVariant: Record \"Shpfy Variant\"; xShopifyVariant: Record \"Shpfy Variant\"; var BulkOperationInput: TextBuilder; var GraphQueryList: List of [TextBuilder]; RecordCount: Integer)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"UpdateProductPrice","sig":"(TextBuilder)","named":"(GraphQuery: TextBuilder)","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"23-28","first":23,"last":28,"obsoleteSince":null,"spans":[{"from":23,"to":25,"named":"(GraphQuery: TextBuilder)","returns":"","kind":"procedure","access":"internal","obsolete":null},{"from":26,"to":28,"named":"(GraphQuery: TextBuilder)","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"AddProductVariant","sig":"(var Record Shpfy Variant, BigInteger, Enum Shpfy Variant Create Strategy)","named":"(var ShopifyVariant: Record \"Shpfy Variant\" temporary; ProductId: BigInteger; Strategy: Enum \"Shpfy Variant Create Strategy\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"25-29","first":25,"last":29,"obsoleteSince":null,"spans":[{"from":25,"to":29,"named":"(var ShopifyVariant: Record \"Shpfy Variant\" temporary; ProductId: BigInteger; Strategy: Enum \"Shpfy Variant Create Strategy\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"AddProductVariants","sig":"(var Record Shpfy Variant, BigInteger, Enum Shpfy Variant Create Strategy)","named":"(var ShopifyVariant: Record \"Shpfy Variant\" temporary; ProductId: BigInteger; Strategy: Enum \"Shpfy Variant Create Strategy\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"25-29","first":25,"last":29,"obsoleteSince":null,"spans":[{"from":25,"to":29,"named":"(var ShopifyVariant: Record \"Shpfy Variant\" temporary; ProductId: BigInteger; Strategy: Enum \"Shpfy Variant Create Strategy\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"UpdateProductPrice","sig":"(Record Shpfy Variant, Record Shpfy Variant, var TextBuilder, var Dictionary, Integer, var JsonArray)","named":"(ShopifyVariant: Record \"Shpfy Variant\"; xShopifyVariant: Record \"Shpfy Variant\"; var BulkOperationInput: TextBuilder; var GraphQueryList: Dictionary of [BigInteger, TextBuilder]; RecordCount: Integer; var JRequestData: JsonArray)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-28","first":26,"last":28,"obsoleteSince":null,"spans":[{"from":26,"to":28,"named":"(ShopifyVariant: Record \"Shpfy Variant\"; xShopifyVariant: Record \"Shpfy Variant\"; var BulkOperationInput: TextBuilder; var GraphQueryList: Dictionary of [BigInteger, TextBuilder]; RecordCount: Integer; var JRequestData: JsonArray)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"UpdateProductVariants","sig":"(var Record Shpfy Variant)","named":"(var ShopifyVariant: Record \"Shpfy Variant\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var ShopifyVariant: Record \"Shpfy Variant\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CheckShopifyVariantImageExists","sig":"(BigInteger)","named":"(VariantId: BigInteger)","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(VariantId: BigInteger)","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"SetVariantImage","sig":"(Record Shpfy Variant, Text)","named":"(ShopifyVariant: Record \"Shpfy Variant\"; ResourceUrl: Text)","returns":"BigInteger","kind":"procedure","access":"internal","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(ShopifyVariant: Record \"Shpfy Variant\"; ResourceUrl: Text)","returns":"BigInteger","kind":"procedure","access":"internal","obsolete":null}]},{"name":"SetVariantImage","sig":"(BigInteger, BigInteger, BigInteger)","named":"(ProductId: BigInteger; VariantId: BigInteger; ImageId: BigInteger)","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(ProductId: BigInteger; VariantId: BigInteger; ImageId: BigInteger)","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CreateShopifyVariantImage","sig":"(Record Shpfy Variant, Guid)","named":"(Variant: Record \"Shpfy Variant\"; PictureGuid: Guid)","returns":"BigInteger","kind":"procedure","access":"internal","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(Variant: Record \"Shpfy Variant\"; PictureGuid: Guid)","returns":"BigInteger","kind":"procedure","access":"internal","obsolete":null}]},{"name":"UpdateShopifyVariantImage","sig":"(Record Shpfy Variant, Guid)","named":"(Variant: Record \"Shpfy Variant\"; PictureGuid: Guid)","returns":"BigInteger","kind":"procedure","access":"internal","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(Variant: Record \"Shpfy Variant\"; PictureGuid: Guid)","returns":"BigInteger","kind":"procedure","access":"internal","obsolete":null}]},{"name":"UpdateProductPrice","sig":"(Record Shpfy Variant, Record Shpfy Variant, var TextBuilder, var Dictionary, var JsonArray)","named":"(ShopifyVariant: Record \"Shpfy Variant\"; xShopifyVariant: Record \"Shpfy Variant\"; var BulkOperationInput: TextBuilder; var GraphQueryList: Dictionary of [BigInteger, TextBuilder]; var JRequestData: JsonArray)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"29","first":29,"last":29,"obsoleteSince":null,"spans":[{"from":29,"to":29,"named":"(ShopifyVariant: Record \"Shpfy Variant\"; xShopifyVariant: Record \"Shpfy Variant\"; var BulkOperationInput: TextBuilder; var GraphQueryList: Dictionary of [BigInteger, TextBuilder]; var JRequestData: JsonArray)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"UpdateProductPrice","sig":"(BigInteger, TextBuilder)","named":"(VariantId: BigInteger; GraphQuery: TextBuilder)","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"29","first":29,"last":29,"obsoleteSince":null,"spans":[{"from":29,"to":29,"named":"(VariantId: BigInteger; GraphQuery: TextBuilder)","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]}],"events":[],"values":[],"controls":[],"actions":[]}}