Business Central and OneDrive
In codeunit 9510 “Document Service Management” there are two new functions: OpenInOneDrive and OpenInOneDriveFromMedia. If you do a were used on those two function you see it is used in the “Report Inbox” page and the attachment page.
The download option will download the file as an hyperlink to your client.
Also in the “Report Inbox” the two options are there:
But when you open an PDF file the preview is there:
- Developers will be able to implement a third action, Share, that displays the standard Microsoft 365 file sharing window, directly within Business Central. The Share window allows users to share a link with others, email a link, or attach a copy of the file to an email.
- Improvements to the end-user sign-in experience when using OneDrive from Business Central, reducing the number of windows required to handle identity and consent.
- Variations to the AL methods will be made available that give more granular control over where and how the file is copied to OneDrive before it is opened or shared.
Note: I’m not a fan for putting files in your database! (This because the attachment functionality is stored in the media table). Your database is getting big. But I think the database is for storing data and not files. There are better solution such as SharePoint Online, Azure File Storage or Azure Blob Storage.
Leave a Reply