code change · fixIntegration & APIsofficial - Microsoftreviewed - checked by Opus

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

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

Context

  • Work items: AB#646383, AB#653393, AB#657798
  • Labels: AL: Apps (W1), Team: SCM
  • Systems: integration

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