code change · fixInventoryofficial - Microsoftreviewed - checked by Opus

#14432 [Main]- Item Journal approval link fails after approver switches batches

Fixed item journal approval links failing when approvers had previously accessed a different batch. The IsOpenedFromBatch method now correctly uses the record's template and batch instead of falling back to the user's saved batch.

Pull request · merged into main (BC30) on 2026-11-27 by DhavalMore88 (community contribution) · 9 files (+235 -40), 8 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Item Journal’s IsOpenedFromBatch now matches General Journal’s implementation
  • When no batch filter is set, the method uses the record’s own batch name
  • Special filter characters in batch names are properly quoted
  • Approval email links now navigate to the correct batch for the approver
  • Applied to W1 and all localized versions (APAC, CH, ES, FR, GB, IT, RU)
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#660510
  • Labels: ADO: Sync, From Fork, Team: SCM
  • Systems: inventory

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

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