#9126 [Shopify] Base price-sync bulk threshold on changed price count
Product price synchronization with Shopify now triggers bulk operations based on the count of changed variants rather than total mapped products, improving efficiency when few prices change in large catalogs.
- 4files
- 2AL files
- 2objects
Pull request · merged into main (BC30) on 2026-07-09 by onbuyuka · 4 files (+118 -63), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Price sync bulk operation threshold now counts actual changed variants instead of total mapped products
- UpdateProductPrice accumulates per-variant mutations and uses GraphQueryList.Count() to determine real change count
- Individual synchronous mutations are sent when changes are below the 100-variant threshold instead of bulk operations
- Synchronous send removed from TryFunction to enable request logging and authoritative updatedAt tracking
- New unit test validates that few price changes use individual synchronous mutations without bulk operations
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 30178 “Shpfy Product Export”, Shopify: modified
- Codeunit 30189 “Shpfy Variant API”, Shopify: modified
Context
- Work items: AB#640288
- Labels: AL: Apps (W1)
- Systems: integration
- From the description: “Decide based on the actual number of changed variants instead”
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).