Business Central: Preview PDF attachments directly in web client

The Public Preview of Microsoft Business Central Release 2025 Wave 1 is now available, and it is time to test out the available new features. One of the new features that excites me the most is the “Preview PDF attachments directly in web client” user experience feature. Previously, when needing to view a PDF attachment that is stored in Business Central, the user would need to download and open the attachment. With this new feature, users have a smooth and easy way to work with attachments, report outputs, or incoming documents while remaining productive in the work context, saving time and effort.

The best part of this feature is that it is accomplished with one line of code from an AL development perspective. AL developers can easily add this feature to their extensions without a lot of additional coding. Viewing a PDF in the browser is done with the ViewFromStream of the File data type.

Note: File.ViewFromStream is for use with Business Central online and File.View is for use withBusiness Central on-premises


    procedure Preview(InStr: InStream; FileName: Text)
    begin
        File.ViewFromStream(InStr, FileName);
    end;

    procedure Upload(InStr: InStream; var FileName: Text): Boolean
    begin
        exit(File.UploadIntoStream('Select a file to upload', '', 'PDF files (*.pdf)|*.pdf|All files (*.*)|*.*"', FileName, InStr));
    end;

    procedure UploadPreview()
    var
        InStr: InStream;
        FileName: Text;
    begin
        if (File.UploadIntoStream('Select a file to upload', '', 'PDF files (*.pdf)|*.pdf|All files (*.*)|*.*"', FileName, InStr)) then
            File.ViewFromStream(InStr, FileName);
    end;

When viewing a PDF in the browser the rendering provides for a nice user experience.

 

Note: The code and information discussed in this article are for informational and demonstration purposes only. This content was created referencing Microsoft Dynamics 365 Business Central 2025 Wave 1 online.

Permanent link to this article: https://www.dvlprlife.com/2025/03/business-central-preview-pdf-attachments-directly-in-web-client/

March 2025 Cumulative Updates for Dynamics 365 Business Central

The March updates for Microsoft Dynamics 365 Business Central are now available.

Before applying the updates, you should confirm that your implementation is ready for the upgrade and ensure compatibility with your modifications. Work with a Microsoft Partner to determine if you are ready and what is needed for you to apply the update.

Please note that Online customers will automatically be upgraded to version 25.5 over the coming days/weeks and should receive an email notification when upgraded.

Direct links to the cumulative updates are listed here:

Dynamics 365 Business Central On-Premises 2024 Release Wave 2 – 25.5 (March 2025)

Dynamics 365 Business Central On-Premises 2024 Release Wave 1 – 24.11 (March 2025)

Dynamics 365 Business Central On-Premises 2023 Release Wave 2 – 23.17 (March 2025)

Dynamics 365 Business Central On-Premises 2023 Release Wave 1 Updates – 22.18 (October 2024)

Dynamics 365 Business Central On-Premises 2022 Release Wave 2 Updates – Update 21.18 (April 2024)

Dynamics 365 Business Central On-Premises 2022 Release Wave 1 Updates – Update 20.18 (October 2023)

Dynamics 365 Business Central On-Premises 2021 Release Wave 2 Updates – Update 19.18 (April 2023)

Dynamics 365 Business Central On-Premises 2021 Release Wave 1 Updates – Update 18.18 (October 2022)

Dynamics 365 Business Central On-Premises 2020 Release Wave 2 Updates – Update 17.17 (April 2022)

Dynamics 365 Business Central On-Premises 2020 Release Wave 1 Updates – Update 16.19 (January 2022)

Dynamics 365 Business Central On-Premises 2019 Release Wave 2 Updates – Update 15.17 (April 2021)

Dynamics 365 Business Central On-Premises Spring 2019 Updates – Update 52 (October 2023)

Dynamics 365 Business Central On-Premises October’18 Updates – Update 18 (April 2020)

Permanent link to this article: https://www.dvlprlife.com/2025/03/march-2025-cumulative-updates-for-dynamics-365-business-central/

Preview of Dynamics 365 Business 2025 Release Wave 1

🎉🍾 With all the chatter about the preview of Business Central Release 2025 Wave 1 hitting the streets, it’s time to revisit how to create a new environment. 🍾🎉

✅ Log into your “Dynamics 365 Business Central admin center”
Click on the +New item
✅ In the “Create environment” dialog, enter an Environment Name, select an Environment Type (If you want to create a Preview environment, the type must be Sandbox), Choose a country, and select a version.
✅ Click Create
✅ The new environment will be displayed in your admin center and will have a pending status. Once it hits Active status, you can access your environment

 

While you’re here take a quick read of Dynamics 365 Business Central: Setup a Public Preview Development Environment

Permanent link to this article: https://www.dvlprlife.com/2025/03/preview-of-dynamics-365-business-2025-release-wave-1/

Real Things I’m asked: Bulk Upload Images into Business Central

Q. I need to load images for several items in Business Central. Can I load them all at once, or do I need to load them one at a time?

A. You can import images for multiple items simultaneously. To do this, name your image files according to the corresponding item numbers. Then, compress these files into a zip archive. Finally, use the Import Item Pictures page to manage and import the images for your items.

  1. Gather the images that need to be imported. Verify that each image’s filename matches the corresponding “Item No.” in Microsoft Dynamics 3655 Business Central.
  2. Compress the images to import into a compressed ZIP archive.
  3. Open Business Central and enter “Import Item Pictures” in the Tell Me search dialog
  4. Choose the “Import Item Pictures” task page.
  5. Using the ellipses in the Select a Zip file field, select the compressed ZIP file containing the images that need to be imported.
  6. For each image and item in the file, a line is created that includes the status of each image. The “Picture Already Exists” checkbox is selected for items with an associated picture. Additionally, you can enable the “Replace Pictures” option on the “Import Item Pictures” page to replace all existing pictures with those in the file. If you prefer not to replace existing images, select the “Replace Pictures” checkbox.
  7. Choose the Import Pictures action.

Let’s see it in action:

Read more about Importing Multiple Item Pictures here.

Note: The code and information discussed in this article are for informational and demonstration purposes only. This content was created referencing Microsoft Dynamics 365 Business Central 2024 Wave 2 online.

Permanent link to this article: https://www.dvlprlife.com/2025/02/real-things-im-asked-bulk-upload-images-into-business-central/

Real Things I’m asked: Schedule an update to my Business Central Online Environment

Q. Microsoft recently released an update to Business Central. When will I receive the update; is there a way to schedule it?

A. You can see and schedule available updates to Business Central through the Dynamics 3655 Business Central admin center.

Major updates to Dynamics 365 Business Central online occur twice a year, introducing new features and enhancements. Minor updates occur monthly and focus primarily on critical improvements, although they often contain new functionality. Microsoft allows for a testing period to test new functionality and enhancements in sandbox environments to ensure compatibility of extensions and apps before loading them into a production environment. A grace period exists for rescheduling updates before an environment update is enforced.

The admin center is where you manage the updates to your Business Central environment.

Log into the admin center for your environment.

The admin center will list all of your environments and their version statuses. The Current Version, Available Update Version, and Scheduled Update Date values are also visible. The update window and date can be set on the environment page if an update is available.

To schedule an update to an environment, visit the environment page (click on the environment name).

The version management section of the pages is where the Scheduled Update Date and Update Window values are set. An environment’s update window defines the hours during the day for the selected time zone during which the environment can be updated. Many will typically set the update window to outside business hours to minimize the impact on business operations.

To specify the update date, click on Modify for “Scheduled Update Date” and, in the dialog, select the date that you would like the update to be installed in your environment. You can also specify whether the Update Window settings should be honored when setting the date.

To specify the update window, click on Modify for the “Update Window” and, in the dialog, select the time zone and hours in which the update can be applied.

Once an update is scheduled, the date is displayed in the admin center.

Let’s see it in action: 

Read more about Business Central Major and Minor Updates here

Note: The code and information discussed in this article are for informational and demonstration purposes only. This content was created referencing Microsoft Dynamics 365 Business Central 2024 Wave 2 online.

Permanent link to this article: https://www.dvlprlife.com/2025/02/real-things-im-asked-schedule-an-update-to-my-business-central-online-environment/

Real Things I’m asked: Enable Claude Sonnet in GitHub Copilot

Q. How do I enable Claude Sonnet in GitHub Copilot for Visual Studio Code?

A. GitHub Copilot Chat uses OpenAI’s GPT-4 large language model by default. This advanced model excels in various text-generation tasks, such as summarization and knowledge-based conversations. However, you are not restricted to using this model; you can select from other models, each offering unique strengths.

There has been a lot of buzz about Claude Sonnet lately, as many feel it works better for software development. Claude Sonnet 3.5 is a large language model that serves as an alternative to the default model used by Copilot Chat. It excels in coding tasks throughout the entire software development lifecycle, including initial design, bug fixes, maintenance, and optimizations.

Switching to use Claude Sonnet in GitHub CoPilot is done in a few simple steps.

  1. Log into github.com and go to your profile
  2. Choose Settings -> Copilot
  3. In the Copilot policies section, find the setting “Anthropic Claude 3.5 Sonnet in Copilot” and enable it.
  4. In VS Code, open Copilot Chat
  5. In the Ask Copilot Chat window, pick “Claude 3.5 Sonnet” as the model

As new models are added to GitHub, try experimenting with them to find which one works best for you.

 

Permanent link to this article: https://www.dvlprlife.com/2025/02/real-things-im-asked-enable-claude-sonnet-in-github-copilot/

February 2025 Cumulative Updates for Dynamics 365 Business Central

The February updates for Microsoft Dynamics 365 Business Central are now available.

Before applying the updates, you should confirm that your implementation is ready for the upgrade and ensure compatibility with your modifications. Work with a Microsoft Partner to determine if you are ready and what is needed for you to apply the update.

Please note that Online customers will automatically be upgraded to version 25.4 over the coming days/weeks and should receive an email notification when upgraded.

Direct links to the cumulative updates are listed here:

Dynamics 365 Business Central On-Premises 2024 Release Wave 2 – 25.4 (February 2025)

Dynamics 365 Business Central On-Premises 2024 Release Wave 1 – 24.10 (February 2025)

Dynamics 365 Business Central On-Premises 2023 Release Wave 2 – 23.16 (February 2025)

Dynamics 365 Business Central On-Premises 2023 Release Wave 1 Updates – 22.18 (October 2024)

Dynamics 365 Business Central On-Premises 2022 Release Wave 2 Updates – Update 21.18 (April 2024)

Dynamics 365 Business Central On-Premises 2022 Release Wave 1 Updates – Update 20.18 (October 2023)

Dynamics 365 Business Central On-Premises 2021 Release Wave 2 Updates – Update 19.18 (April 2023)

Dynamics 365 Business Central On-Premises 2021 Release Wave 1 Updates – Update 18.18 (October 2022)

Dynamics 365 Business Central On-Premises 2020 Release Wave 2 Updates – Update 17.17 (April 2022)

Dynamics 365 Business Central On-Premises 2020 Release Wave 1 Updates – Update 16.19 (January 2022)

Dynamics 365 Business Central On-Premises 2019 Release Wave 2 Updates – Update 15.17 (April 2021)

Dynamics 365 Business Central On-Premises Spring 2019 Updates – Update 52 (October 2023)

Dynamics 365 Business Central On-Premises October’18 Updates – Update 18 (April 2020)

Permanent link to this article: https://www.dvlprlife.com/2025/02/february-2025-cumulative-updates-for-dynamics-365-business-central/

Real Things I’m asked: Cancel a User Session or Restart a Business Central Environment

Q. How do I cancel a user session or restart an environment in Business Central?

A. The Dynamics 365 Business Central Admin Center allows an administrator to restart a Business Central Environment or cancel a Business Central user session.

Canceling a session is sometimes the only way to unblock an environment where a user may have started a long-running locking process that is preventing other users from working.

In some instances, canceling the sessions may not resolve the issue. In those situations, you should restart the environment.

To restart an environment or cancel user sessions:

  • Open the Dynamics 365 Business Central Admin Center
  • Select the Environments section for a list of the available Environments
  • Click on the selected environment to open the environment page
  • From the Environment page, select Sessions from the top menu to open the “Manage Sessions” page.

To cancel a user session:

    • Select the user (or users if multiple user sessions need to be canceled) from the list and click the “Cancel session” link next to the user or the “Cancel selected sessions” button.
    • Click Yes to confirm that you would like to cancel the user session.

Note: A canceled user will receive a pop-up notification that their session was paused and to refresh to continue

To restart an environment:

    • Select the “Restart Environment” button.
    • Click Yes to confirm that you would like to restart the environment.

Note: The environment status is visible in the Details section on the environment page. The status will show Restarting while the environment is restarting and Active when the restart has finished.

 

Let’s see it in action:

Note: The code and information discussed in this article are for informational and demonstration purposes only. This content was created referencing Microsoft Dynamics 365 Business Central 2024 Wave 2 online.

Permanent link to this article: https://www.dvlprlife.com/2025/02/real-things-im-asked-cancel-a-user-session-or-restart-a-business-central-environment/

January 2025 Cumulative Updates for Dynamics 365 Business Central

The January updates for Microsoft Dynamics 365 Business Central are now available.

Before applying the updates, you should confirm that your implementation is ready for the upgrade and ensure compatibility with your modifications. Work with a Microsoft Partner to determine if you are ready and what is needed for you to apply the update.

Please note that Online customers will automatically be upgraded to version 25.3 over the coming days/weeks and should receive an email notification when upgraded.

Direct links to the cumulative updates are listed here:

Dynamics 365 Business Central On-Premises 2024 Release Wave 2 – 25.3 (January 2025)

Dynamics 365 Business Central On-Premises 2024 Release Wave 1 – 24.9 (January 2025)

Dynamics 365 Business Central On-Premises 2023 Release Wave 2 – 23.15 (January 2025)

Dynamics 365 Business Central On-Premises 2023 Release Wave 1 Updates – 22.18 (October 2024)

Dynamics 365 Business Central On-Premises 2022 Release Wave 2 Updates – Update 21.18 (April 2024)

Dynamics 365 Business Central On-Premises 2022 Release Wave 1 Updates – Update 20.18 (October 2023)

Dynamics 365 Business Central On-Premises 2021 Release Wave 2 Updates – Update 19.18 (April 2023)

Dynamics 365 Business Central On-Premises 2021 Release Wave 1 Updates – Update 18.18 (October 2022)

Dynamics 365 Business Central On-Premises 2020 Release Wave 2 Updates – Update 17.17 (April 2022)

Dynamics 365 Business Central On-Premises 2020 Release Wave 1 Updates – Update 16.19 (January 2022)

Dynamics 365 Business Central On-Premises 2019 Release Wave 2 Updates – Update 15.17 (April 2021)

Dynamics 365 Business Central On-Premises Spring 2019 Updates – Update 52 (October 2023)

Dynamics 365 Business Central On-Premises October’18 Updates – Update 18 (April 2020)

Permanent link to this article: https://www.dvlprlife.com/2025/01/january-2025-cumulative-updates-for-dynamics-365-business-central/

December 2024 Cumulative Updates for Dynamics 365 Business Central

The December updates for Microsoft Dynamics 365 Business Central are now available.

Before applying the updates, you should confirm that your implementation is ready for the upgrade and ensure compatibility with your modifications. Work with a Microsoft Partner to determine if you are ready and what is needed for you to apply the update.

Please note that Online customers will automatically be upgraded to version 25.2 over the coming days/weeks and should receive an email notification when upgraded.

Direct links to the cumulative updates are listed here:

Dynamics 365 Business Central On-Premises 2024 Release Wave 2 – 25.2 (December 2024)

Dynamics 365 Business Central On-Premises 2024 Release Wave 1 – 24.8 (December 2024)

Dynamics 365 Business Central On-Premises 2023 Release Wave 2 – 23.14 (December 2024)

Dynamics 365 Business Central On-Premises 2023 Release Wave 1 Updates – 22.18 (October 2024)

Dynamics 365 Business Central On-Premises 2022 Release Wave 2 Updates – Update 21.18 (April 2024)

Dynamics 365 Business Central On-Premises 2022 Release Wave 1 Updates – Update 20.18 (October 2023)

Dynamics 365 Business Central On-Premises 2021 Release Wave 2 Updates – Update 19.18 (April 2023)

Dynamics 365 Business Central On-Premises 2021 Release Wave 1 Updates – Update 18.18 (October 2022)

Dynamics 365 Business Central On-Premises 2020 Release Wave 2 Updates – Update 17.17 (April 2022)

Dynamics 365 Business Central On-Premises 2020 Release Wave 1 Updates – Update 16.19 (January 2022)

Dynamics 365 Business Central On-Premises 2019 Release Wave 2 Updates – Update 15.17 (April 2021)

Dynamics 365 Business Central On-Premises Spring 2019 Updates – Update 52 (October 2023)

Dynamics 365 Business Central On-Premises October’18 Updates – Update 18 (April 2020)

Permanent link to this article: https://www.dvlprlife.com/2024/12/december-2024-cumulative-updates-for-dynamics-365-business-central/