#9359 Sales Order Agent: ignore attachments larger than 25 MB during email retrieval
Sales Order Agent now ignores email attachments larger than 25 MB during retrieval and replaces them with placeholder notes to prevent email processing failures when oversized files are encountered.
- 4files
- 4AL files
- 4objects
Pull request · merged into main (BC30) on 2026-10-14 by qasimikram · 4 files (+80 -22), 4 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Attachment sizes are checked before content retrieval using EmailMessage.Attachments_GetLength()
- Oversized attachments are replaced with small placeholder text files ending in .ignored.txt
- Only non-ignored attachments are copied to sales quotes during attachment transfer
- New enum value ExceedsFileSize added to SOA Email Attachment Status to track ignore reason
- Telemetry is emitted for ignored attachments with original file details
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 4600 “SOA Document Events”, SalesOrderAgent: modified
- Enum 4594 “SOA Email Attachment Status”, SalesOrderAgent: modified
- Codeunit 4582 “SOA Retrieve Emails”, SalesOrderAgent: modified
- Codeunit 4400 “SOA Setup”, SalesOrderAgent: modified
Context
- Work items: AB#639715
- Labels: AL: Apps (W1), Team: SCM
- Systems: copilot
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Set up Sales Order Agent — possibly related: Documents Sales Order Agent setup and configuration including email processing and handling. (model-linked)
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).