---
id: object/codeunit/30171
type: object
title: Codeunit 30171 "Shpfy Create Item"
summary: Codeunit 30171 "Shpfy Create Item" in Shopify (Microsoft.Integration.Shopify). 7 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: 17cc58014912f6d61909e5dfe63af9773c3b4626c499197675ea1c67721b4bcd
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Shopify/app/src/Products/Codeunits/ShpfyCreateItem.Codeunit.al
    title: src/Apps/W1/Shopify/app/src/Products/Codeunits/ShpfyCreateItem.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/9320
object_type: codeunit
object_id: 30171
name: Shpfy Create Item
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: 16
  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 30171 "Shpfy Create Item"

> Codeunit 30171 "Shpfy Create Item" in Shopify (Microsoft.Integration.Shopify). 7 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/ShpfyCreateItem.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| TableNo | Shpfy Variant |
| Permissions | tabledata Item = rim, tabledata "Item Category" = rim, tabledata "Item Reference" = rim, tabledata "Item Unit of Measure" = rim, tabledata "Item Variant" = rim, tabledata "Item Vendor" = rim, tabledata "Tariff Number" = r, tabledata "Unit of Measure" = rim, tabledata Vendor = rim |

## Procedures

- `CreateReferences(ShopifyProduct: Record "Shpfy Product"; ShopifyVariant: Record "Shpfy Variant"; Item: Record Item; ItemVariant: Record "Item Variant")` (internal): Create References.
- `GetTariffNo(TariffNo: Code[20]): Code[20]` (internal): Get Tariff No. Returns the tariff number only when it already exists in Business Central, so importing a product from Shopify does not create new Tariff Number records. Shopify returns the harmonized system code without separators (e.g. "610443" instead of "6104.43"), so when there is no exact match...
- `CreateItemsFromShopifyProducts(var Product: Record "Shpfy Product")` (internal): Create Items from Shopify Products.
- `CreateItemFromShopifyProduct(Product: Record "Shpfy Product")` (internal): Create Item from Shopify Product.
- `SetShop(Code: Code[20])` (internal): Set Shop.
- `SetShop(ShopifyShop: Record "Shpfy Shop")` (internal): Set Shop.
- `SetTemplateCode(Code: Code[10])` (internal): Set Template Code.

Plus 9 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 30129 "Shpfy Variant"](../table/30129.md)

## Recent changes

- 2026-07-16 [#9320 [Shopify] Import HS code and country of origin from Shopify](../../changes/bcapps/9320.md) (main, BC30, feature)

## 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 Create Item")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
