#11995 OfficeMgt.IsAvailable check added to fix flaky tests
The Outlook Mail Engine now checks if Office Management is available before reinitializing the configured Office host, preventing test failures when the Library Office Host Provider is overwritten with unsupported client host types.
- 1files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-09-29 by Kimi310 · 1 file (+5 -5), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Added OfficeMgt.IsAvailable check before reinitializing Office host from client
- Prevents overwriting Library Office Host Provider host type OutlookMobileApp with unsupported client host types
- Fixes flaky test failures where Office Management.GetHandlerCodeunit returned no handler
- Maintains Office configuration stability during testing scenarios
- Behaviour changes for users or extensions.
AL objects touched
- Page 1600 “Outlook Mail Engine”, Base Application: modified
Context
- Work items: AB#647475
- Labels: Team: SCM
- Systems: crm
- From the description: “The Outlook Mail Engine always reinitialized the configured Office host from the client-side .NET OfficeHost whenever the client reported availability.”
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).