Skip to content

[Shopify] API 2026-01 uptake (backport to releases/27.0)#8683

Open
djukicmilica wants to merge 2 commits into
microsoft:releases/27.0from
djukicmilica:features/shopify-api-2026-01-uptake-27.0
Open

[Shopify] API 2026-01 uptake (backport to releases/27.0)#8683
djukicmilica wants to merge 2 commits into
microsoft:releases/27.0from
djukicmilica:features/shopify-api-2026-01-uptake-27.0

Conversation

@djukicmilica

@djukicmilica djukicmilica commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Backport of PR #8366 ([Shopify] API 2026-01 uptake) and PR #8548 (Fix codeunit 139593 ID clash) to releases/27.0.

Changes

  • API version update from 2025-07 to 2026-01
  • Inventory API rework with idempotency and retry logic
  • Unverified return lines support
  • Article reference metafield support
  • Tax Code deprecation (ObsoleteTag CLEAN28/CLEANSCHEMA31)
  • External Trace Id on Payout table
  • GetCurrentBulkOperation removal
  • Pagination fixes
  • Codeunit ID clash fix (139593 → 134248)

Conflict resolutions

  • ShpfyPayout.Table.al: Added External Trace Id field only (Shop Code field not present on this branch)
  • ShpfyPaymentsTest.Codeunit.al: Adapted ExternalTraceId test without Shop Code assertions; excluded BackfillsShopCode test (Shop Code field not on this branch)

Related work items: AB#617321, AB#637744

github-actions Bot and others added 2 commits June 19, 2026 12:04
…8) (microsoft#8548)

Codeunit 139593 `"Shpfy Inventory Subscriber"` was reintroduced on the
release branch by the API 2026-01 uptake backport (PR microsoft#8366) but clashes
with the codeunit 139593 in the BCApps Shopify Connector Test 28.0.0.0
baseline, which is checked by BuildCop and the BC platform during NAV
gate validation (`VerifyApplicationChanges` failed in job 3581772, NAV
PR 248762).

## Fix

Renumber the codeunit from 139593 to **134248** and extend the existing
`134241-134247` `idRange` in `src/Apps/W1/Shopify/Test/app.json` to
`134248`.

134248 is confirmed free across:
- NAV source (`C:\depot\NAV2\App\Apps`, `Layers`, `Internal`, `Test`,
`Extension`)
- BCApps source on `main`, `releases/27.x`, and `releases/27.5`
- All 137 `.app` baselines in NAV2 (Shopify Test 25.8 through 29.0 and
every other app)

All other references to the codeunit use the name `"Shpfy Inventory
Subscriber"` rather than the ID, so no callers need to change.

Companion fix for releases/27.x: microsoft#8547.

Fixes
[AB#638060](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/638060)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@djukicmilica djukicmilica requested a review from a team June 19, 2026 10:04
@djukicmilica djukicmilica requested review from a team as code owners June 19, 2026 10:04
@github-actions github-actions Bot added AL: Apps (W1) Add-on apps for W1 From Fork Pull request is coming from a fork Linked Issue is linked to a Azure Boards work item labels Jun 19, 2026
@github-actions github-actions Bot added this to the Version 27.0 milestone Jun 19, 2026
Copilot AI added a commit that referenced this pull request Jun 19, 2026
…to allow test access

The test UnitTestImportPayoutWithExternalTraceId in ShpfyPaymentsTest.Codeunit.al
calls PaymentsAPI.ImportPayout(JPayout), but ImportPayout was declared as `local procedure`,
which is not accessible outside the codeunit even via internalsVisibleTo.

Fix: Change `local procedure ImportPayout` to `internal procedure ImportPayout` in
ShpfyPaymentsAPI.Codeunit.al so the test can call it (the Shopify Connector app already
declares internalsVisibleTo for the Shopify Connector Test app).

Also merges the PR #8683 API 2026-01 uptake changes (External Trace Id field, new test,
and other API changes) into the branch.
Copilot AI added a commit that referenced this pull request Jun 19, 2026
…hpfy Payments API

The test UnitTestImportPayoutWithExternalTraceId calls PaymentsAPI.ImportPayout()
but ImportPayout was declared as a local procedure, making it inaccessible
from the test codeunit. Changing it to internal allows access via the
internalsVisibleTo declaration in app.json.

Also includes all PR #8683 changes (Shopify API 2026-01 uptake backport to
releases/27.0): External Trace Id on Payout table, inventory API rework,
unverified return lines, article reference metafield support, and related
test updates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 From Fork Pull request is coming from a fork Linked Issue is linked to a Azure Boards work item

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants