---
id: object/codeunit/30178
type: object
title: Codeunit 30178 "Shpfy Product Export"
summary: Codeunit 30178 "Shpfy Product Export" in Shopify (Microsoft.Integration.Shopify). 16 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - shopify
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 9d433fe57b48f2b774dcadbff3daa0db12a46b3f0d480077bb0cd7f1943598a6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Shopify/app/src/Products/Codeunits/ShpfyProductExport.Codeunit.al
    title: src/Apps/W1/Shopify/app/src/Products/Codeunits/ShpfyProductExport.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9126
object_type: codeunit
object_id: 30178
name: Shpfy Product Export
namespace: Microsoft.Integration.Shopify
app: Shopify
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 41
  events: 0
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 30178 "Shpfy Product Export"

> Codeunit 30178 "Shpfy Product Export" in Shopify (Microsoft.Integration.Shopify). 16 public procedures. Introduced in BC29, still in BC30.

Shopify · Microsoft.Integration.Shopify · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Shopify/app/src/Products/Codeunits/ShpfyProductExport.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| TableNo | Shpfy Shop |
| Permissions | tabledata "Extended Text Header" = r, tabledata "Extended Text Line" = r, tabledata Item = rim, tabledata "Item Attr. Value Translation" = r, tabledata "Item Attribute" = r, tabledata "Item Attribute Translation" = r, tabledata "Item Attribute Value" = r, tabledata "Item Attribute Value Mapping" = r... |

## Procedures

- `CreateProductBody(ItemNo: Code[20]; LanguageCode: Code[10]): Text` (internal): Creates html body for a product from extended text, marketing text and attributes.
- `FillInProductFields(Item: Record Item; var ShopifyProduct: Record "Shpfy Product")` (internal): Fill In Product Fields.
- `FillInProductVariantData(var ShopifyVariant: Record "Shpfy Variant"; Item: Record Item; ItemUnitofMeasure: Record "Item Unit of Measure")` (internal): Fill In Product Variant Data.
- `FillInProductVariantData(var ShopifyVariant: Record "Shpfy Variant"; Item: Record Item; ItemVariant: Record "Item Variant")` (internal): Fill In Product Variant Data.
- `FillInProductVariantData(var ShopifyVariant: Record "Shpfy Variant"; Item: Record Item; ItemVariant: Record "Item Variant"; ItemUnitofMeasure: Record "Item Unit of Measure")` (internal): Fill In Product Variant Data.
- `SetOnlyUpdatePriceOn()` (internal)
- `SetShop(Code: Code[20])` (internal): Set Shop.
- `SetShop(ShopifyShop: Record "Shpfy Shop")` (internal): Set Shop.
- `UpdateProductTranslations(ProductId: BigInteger; Item: Record Item)` (internal)
- `CheckItemCanBeExported(Item: Record Item): Boolean` (internal): Checks if the item can be exported to Shopify. Validates that the item is not blocked, has a description, and does not exceed the variant limit.
- `CheckItemVariantCount(Item: Record Item): Boolean` (internal): Checks if the item's expected variant count does not exceed the Shopify maximum of 2048 variants per product.
- `CheckItemAttributesCompatibleForProductOptions(Item: Record Item): Boolean` (internal): Checks if item/item variant attributes marked as "As Option" are compatible to be used as product options in Shopify.
- `GetItemAttributeIDsMarkedAsOption(Item: Record Item; var ItemAttributeIds: List of [Integer])` (internal)
- `FillProductOptionsForShopifyVariants(Item: Record Item; var TempShopifyVariant: Record "Shpfy Variant" temporary; var TempShopifyProduct: Record "Shpfy Product" temporary)` (internal): Fills product options for Shopify variants based on item attributes marked as "As Option".
- `ValidateItemAttributesAsProductOptionsForNewVariant(var TempShopifyVariant: Record "Shpfy Variant" temporary; Item: Record Item; ItemVariantCode: Code[10]; ShopifyProductId: BigInteger): Boolean` (internal): Validates item attributes and prepares temporary Shopify variant by assigning product option values from Item/Item Variant.
- `GetCountryISOCode(CountryRegionCode: Code[10]): Code[10]` (internal)

Plus 25 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 30102 "Shpfy Shop"](../table/30102.md)

## Recent changes

- 2026-07-09 [#9126 [Shopify] Base price-sync bulk threshold on changed price count](../../changes/bcapps/9126.md) (main, BC30, fix)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Shpfy Product Export")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
