---
id: change/bcapps/12215
type: change
title: "#12215 [Shopify] Link grouped invoice to all originating orders"
summary: Invoice document linking to Shopify orders now correctly associates a single invoice with all originating Shopify orders when multiple shipments are grouped, instead of retaining filters from earlier shipments.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit shpfy document link mgt.
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:02:14.709Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 4dd61dc02fea2b5e9355cf8c13e43f3695a03cba
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12215
    title: "microsoft/BCApps#12215: [Shopify] Link grouped invoice to all originating orders"
    date: "2026-10-06"
    commit: 4dd61dc02fea2b5e9355cf8c13e43f3695a03cba
    t: null
    quote: This clears those retained filters before each shipment lookup so the posted invoice is linked to every originating Shopify order.
links:
  learn: []
  objects:
    - object/codeunit/30262
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 12215
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12215
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-06T20:33:16Z"
author: onbuyuka
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 59
  deletions: 0
  al: 1
apps:
  - Shopify
objects_touched:
  - key: codeunit/30262
    page: codeunit/30262
    type: codeunit
    id: 30262
    name: Shpfy Document Link Mgt.
    app: Shopify
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 652582
systems:
  - integration
quote: This clears those retained filters before each shipment lookup so the posted invoice is linked to every originating Shopify order.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #12215 [Shopify] Link grouped invoice to all originating orders

> Invoice document linking to Shopify orders now correctly associates a single invoice with all originating Shopify orders when multiple shipments are grouped, instead of retaining filters from earlier shipments.

[Pull request](https://github.com/microsoft/BCApps/pull/12215) · merged into `main` (BC30) on 2026-10-06 by onbuyuka · 2 files (+59 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Clear stale Shopify document filters before resolving each shipment link
- Grouped shipments from multiple orders are now linked to all originating orders
- Added test coverage for grouped invoice scenario
- No schema or compatibility impact
- Fixes issue where later shipment lookups were affected by retained filters from earlier shipments
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 30262 "Shpfy Document Link Mgt."](../../objects/codeunit/30262.md), Shopify: modified

## Context

- Work items: AB#652582
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "This clears those retained filters before each shipment lookup so the posted invoice is linked to every originating Shopify order."

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).
