The new File.ViewFromStream function introduced with BC26 includes the FileName as its second parameter; however, when the download button is pressed in the preview form, the downloaded file has a generic name 'default.pdf' instead of the filename passed as the second parameter.
The same function should allow at least the visualization of Microsoft Office suite files.
Comments
looks like this is fixed with 26.8611981Enhancement that allows PDF files to be downloaded with their original filenames.609838Downloading a PDF from the preview window changes the existing document name.https://support.microsoft.com/en-us/topic/update-26-8-for-microsoft-dynamics-365-business-central-2025-release-wave-1-application-build-26-8-42779-platform-build-26-0-42720-370ba46d-69f6-4c3b-94a8-266e05be412b
Category: Development
