---
id: change/bcapps/8577
type: change
title: "#8577 [Shopify] Fix #7724: Resolve Option 1 Name from existing Shopify Variant records"
summary: Fixed a regression where the Option 1 Name for Shopify product variants was being incorrectly reset to 'Variant' instead of preserving existing names like 'Color' or 'Size'. The fix ensures Option 1 Value is always set when the name is resolved from existing Shopify records.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit shpfy product export
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-11-08T00:59:03.780Z"
  flags: []
generated:
  at: "2026-11-09T00:15:52.409Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 1a0269c7f25f6feacd8c3172e19cc48f5b184c74
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/8577
    title: "microsoft/BCApps#8577: [Shopify] Fix #7724: Resolve Option 1 Name from existing Shopify Variant records"
    date: "2026-11-06"
    commit: 1a0269c7f25f6feacd8c3172e19cc48f5b184c74
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/30178
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/shopify/synchronize-items
      title: Synchronize items with Shopify
      label: possibly related
      why: Documents Shopify product variant synchronization between systems.
      by: model
number: 8577
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/8577
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-06T10:18:05Z"
author: Debs-TVT
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: Apps (W1)"
  - From Fork
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 485
  deletions: 6
  al: 1
apps:
  - Shopify
objects_touched:
  - key: codeunit/30178
    page: codeunit/30178
    type: codeunit
    id: 30178
    name: Shpfy Product Export
    app: Shopify
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues:
  - 7724
work_items:
  - 648928
systems:
  - integration
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #8577 [Shopify] Fix #7724: Resolve Option 1 Name from existing Shopify Variant records

> Fixed a regression where the Option 1 Name for Shopify product variants was being incorrectly reset to 'Variant' instead of preserving existing names like 'Color' or 'Size'. The fix ensures Option 1 Value is always set when the name is resolved from existing Shopify records.

[Pull request](https://github.com/microsoft/BCApps/pull/8577) · merged into `main` (BC30) on 2026-11-06 by Debs-TVT (community contribution) · 2 files (+485 -6), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Regression in product export where Option 1 Name was reset to 'Variant' for Shopify-origin products with existing variants
- Root cause was missing guard condition to set Option 1 Value when resolved name differed from 'Variant'
- Added JustResolvedOption1Name flag to handle all cases consistently
- Five new test scenarios cover Shopify-origin, BC-origin, and ambiguous variant cases
- All tests pass with no regressions to existing product export functionality
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 30178 "Shpfy Product Export"](../../objects/codeunit/30178.md), Shopify: modified

## Context

- Fixes: [#7724 [Bug]: Shopify variant create uses wrong option name after initial import from Shopify](https://github.com/microsoft/BCApps/issues/7724) (closed)
- Work items: AB#648928
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Integrations
- Systems: integration

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Synchronize items with Shopify](https://learn.microsoft.com/dynamics365/business-central/shopify/synchronize-items) — possibly related: Documents Shopify product variant synchronization between systems. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
