#9744 [Email - Outlook REST API] Skip attachments without contentBytes in RetrieveEmails
The Email - Outlook REST API connector now skips attachments without contentBytes instead of failing the entire batch, allowing emails with non-file attachments to be imported successfully.
- 3files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-07-29 by onbuyuka · 3 files (+119 -0), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Attachments without contentBytes (item and reference attachments) are now skipped instead of failing the batch
- File attachments with contentBytes are handled as before
- A single email with a non-file attachment, such as a bounce notification, no longer rolls back every email imported in the run
- Regression test and payload added for non-file attachments
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 4509 “Email - Outlook API Helper”, Email - Outlook REST API: modified
Context
- Work items: AB#644147
- Labels: AL: Apps (W1), Team: Integrations
- Systems: development
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).