#12683 [API tests] Return shipment PDF selection and pdfDocument test isolation
The return shipment PDF handler now uses the P.Ret.Shpt. report selection instead of P.Return, so the API can produce a PDF for a posted return shipment. Three API pdfDocument tests are fixed by disabling test isolation and creating their own documents, and they are removed from the disabled list.
- 5files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-11-04 by t-prda · 5 files (+14 -28), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Return Shpt. PDF Doc.Handler uses P.Ret.Shpt. instead of P.Return report selection usage
- Before this fix, expanding pdfDocument on purchase return shipments returned HTTP 400
- RequiredTestIsolation set to Disabled on the three API test codeunits so data is committed before the HTTP call
- Blanket order and quote tests create their own one-line document
- Three tests removed from the APIV2 disabled-tests list
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 4999 “Return Shpt. PDF Doc.Handler”, Base Application: modified
Context
- Work items: AB#646383, AB#653393, AB#657798
- Labels: AL: Apps (W1), Team: SCM
- Systems: integration
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Test Codeunits and Test Methods in AL — possibly related: Documents test codeunits and test methods including handler methods for automated testing. (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).