Plaza 365
Plaza 365

No results found for your search

RegisterLog in

9

Visit article

#bc

#control

#javascript

#pdf

#sharepoint

Dynamics 365 Business Central

Category

Feb 22, 2025

Published date

Text

Article Type


AI Summary

  • The article discusses the inability to preview files within Dynamics 365 Business Central (BC) and suggests using a JavaScript control add-in for PDF preview.
  • A new feature in the upcoming BC26 release will allow users to preview PDF attachments directly in the web client.
  • The article introduces a method to open most file types supported for previewing files in SharePoint, allowing files to be opened directly from BC through a web URL returned by SharePoint.
  • The method involves temporarily uploading the file to SharePoint via the Graph API and then opening the file through the returned Web URL.
  • A solution is presented for opening a URL in a current session without opening a new tab in the browser using the WebPageViewer control add-in in BC.
  • Detailed steps are provided for creating a new page to preview the file, adding a new action on the Document Attachment Details page, and managing the logic for authentication and uploading of files.
  • The article includes a GitHub link for reference, troubleshooting tips for file deletion errors, and information on using Microsoft Graph API for accessing Microsoft Cloud service resources.
  • Various tests and demonstrations are conducted using Postman to interact with SharePoint, retrieve file information, read file contents, and upload files to SharePoint from Postman.

Registered users can view the full text for FREE!

Sign In Now!