---
title: "Codeunit 30189 Shpfy Variant API"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/
type: codeunit
id: 30189
name: "Shpfy Variant API"
app: "Shopify Connector"
namespace: Microsoft.Integration.Shopify
versions: "20-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/source/?v=27 https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/source/?v=28 https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/source/"
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 30189 Shpfy Variant API

JOP-AL, https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/

| | |
| --- | --- |
| App | Shopify Connector |
| Namespace | Microsoft.Integration.Shopify |
| Versions | 20-29 |
| Minors | W1 20.1-29.0; DE 20.1-29.0; US 20.1-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/30189-shpfy-variant-api/editions.json) |
| Access | Internal |
| Source file | src/Products/Codeunits/ShpfyVariantAPI.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| FindShopifyProductVariant | (var ShopifyProduct: Record "Shpfy Product"; var ShopifyVariant: Record "Shpfy Variant") | Boolean | internal | 20-29 | - | - |
| AddProductVariant | (var ShopifyVariant: Record "Shpfy Variant") | - | internal | 20-24 | - | - |
| FindShopifyVariantByBarcode | (var ShopifyVariant: Record "Shpfy Variant") | Boolean | internal | 20-29 | - | - |
| FindShopifyVariantBySKU | (var ShopifyVariant: Record "Shpfy Variant") | Boolean | internal | 20-29 | - | - |
| RetrieveShopifyProductVaraintImages | (var ProductVariantImages: Dictionary of [BigInteger, Dictionary of [BigInteger, Text]]) | - | internal | 20-22 | - | - |
| RetrieveShopifyProductVariantIds | (ShopifyProduct: Record "Shpfy Product"; var ProductVariantIds: Dictionary of [BigInteger, DateTime]) | - | internal | 20-29 | - | - |
| RetrieveShopifyVariant | (ShopifyProduct: Record "Shpfy Product"; var ShopifyVariant: Record "Shpfy Variant"; var ShopifyInventoryItem: Record "Shpfy Inventory Item") | Boolean | internal | 20-29 | - | - |
| SetShop | (Code: Code[20]) | - | internal | 20-25 | - | - |
| SetShop | (ShopifyShop: Record "Shpfy Shop") | - | internal | 20-29 | - | - |
| UpdateProductVariant | (ShopifyVariant: Record "Shpfy Variant"; xShopifyVariant: Record "Shpfy Variant") | - | internal | 20-26 | - | - |
| UpdateShopifyVariantFields | (ShopifyProduct: Record "Shpfy Product"; var ShopifyVariant: Record "Shpfy Variant"; var ShopifyInventoryItem: Record "Shpfy Inventory Item"; JVariant: JsonObject) | - | internal | 20-29 | - | - |
| RetrieveShopifyProductVariantImages | (var ProductVariantImages: Dictionary of [BigInteger, Dictionary of [BigInteger, Text]]) | - | internal | 23-29 | - | - |
| UpdateProductPrice | (ShopifyVariant: Record "Shpfy Variant"; xShopifyVariant: Record "Shpfy Variant"; var BulkOperationInput: TextBuilder; var GraphQueryList: List of [TextBuilder]; RecordCount: Integer) | - | internal | 23-25 | - | - |
| UpdateProductPrice | (GraphQuery: TextBuilder) | Boolean | internal | 23-28 | - | - |
| AddProductVariant | (var ShopifyVariant: Record "Shpfy Variant" temporary; ProductId: BigInteger; Strategy: Enum "Shpfy Variant Create Strategy") | Boolean | internal | 25-29 | - | - |
| AddProductVariants | (var ShopifyVariant: Record "Shpfy Variant" temporary; ProductId: BigInteger; Strategy: Enum "Shpfy Variant Create Strategy") | - | internal | 25-29 | - | - |
| UpdateProductPrice | (ShopifyVariant: Record "Shpfy Variant"; xShopifyVariant: Record "Shpfy Variant"; var BulkOperationInput: TextBuilder; var GraphQueryList: Dictionary of [BigInteger, TextBuilder]; RecordCount: Integer; var JRequestData: JsonArray) | - | internal | 26-28 | - | - |
| UpdateProductVariants | (var ShopifyVariant: Record "Shpfy Variant") | - | internal | 27-29 | - | - |
| CheckShopifyVariantImageExists | (VariantId: BigInteger) | Boolean | internal | 28-29 | - | - |
| SetVariantImage | (ShopifyVariant: Record "Shpfy Variant"; ResourceUrl: Text) | BigInteger | internal | 28-29 | - | - |
| SetVariantImage | (ProductId: BigInteger; VariantId: BigInteger; ImageId: BigInteger) | Boolean | internal | 28-29 | - | - |
| CreateShopifyVariantImage | (Variant: Record "Shpfy Variant"; PictureGuid: Guid) | BigInteger | internal | 28-29 | - | - |
| UpdateShopifyVariantImage | (Variant: Record "Shpfy Variant"; PictureGuid: Guid) | BigInteger | internal | 28-29 | - | - |
| UpdateProductPrice | (ShopifyVariant: Record "Shpfy Variant"; xShopifyVariant: Record "Shpfy Variant"; var BulkOperationInput: TextBuilder; var GraphQueryList: Dictionary of [BigInteger, TextBuilder]; var JRequestData: JsonArray) | - | internal | 29 | - | - |
| UpdateProductPrice | (VariantId: BigInteger; GraphQuery: TextBuilder) | Boolean | internal | 29 | - | - |

## Source

Symbols: Microsoft.ShopifyConnector.symbols.ec255f57-31d0-4ca2-b751-f2fa7c745abb, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 27: https://github.com/microsoft/BCApps, MIT, releases/27.x at ad459712441b2fe6cb0cf1c560563f8ec7188a93.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 408a4cc8d3a4c54b60464cc14c964479facb9ba0.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
