code change · performanceIntegration & APIsofficial - Microsoftreviewed - checked by Opus

#10775 [Shopify] Optimize unmapped cue counts

The Shopify Activities cues for unmapped customers, products and companies now count records with an empty stored Customer or Item SystemId, so SQL can run a direct COUNT instead of checking each row through lookup FlowFields. A new key led by Item SystemId supports the product count. Mappings that point to deleted records are no longer counted.

Pull request · merged into main (BC30) on 2026-09-02 by onbuyuka · 2 files (+6 -3), 2 AL · performance · tier official · reviewed (checked by Opus)

What changed

  • Changed cue calculations to count empty Customer and Item SystemId fields instead of using lookup FlowFields
  • SQL can now execute direct COUNT(*) queries instead of materializing source tables
  • Added a new key led by Item SystemId for efficient global unmapped-product seeking
  • Records with deleted Customer or Item references are no longer included in counts
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#648153
  • Labels: AL: Apps (W1), Team: Integrations
  • Systems: integration

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