I get asked about device licenses in Business Central on a regular basis, and it's true, there are quite a ...
Meer lezenFirst Look: Exciting New Development Features in Microsoft Dynamics Business Central 2024 Release Wave 2 (v25)
Wednesday, July 31, 2024
Reading time: 8 minutes
Microsoft Dynamics Business Central continues to evolve, and the upcoming 2024 Release Wave 2 (v25) is packed with new development features aimed at enhancing the productivity and capabilities of developers working within the ecosystem. Last week we looked at new application features. This first look dives into some of the most noteworthy development updates, providing insights into how these new features can streamline your development processes and improve the functionality of your custom solutions. For a comprehensive overview, check out the full release plan.
This version seems to have a focus on extending the Interfaces in Business Central, so let’s delve into that first:
Extend AL Interfaces
Learn more about extending AL interfaces here.
Type Testing and Casting Operators for Interfaces
The IS operator
The is operator allows you to test whether an instance of an interface, or the content of a variant supports a specific interface. Here’s the syntax for using the is keyword:
You can also use the is operator with variants:
The AS operator
Similarly, the as keyword works with variants:
Find out more about type testing and casting here.
Extend and Customize Profiles from Other Extensions
Read more about extending and customizing profiles here.
Package Resources in Extensions and Access from AL
Developers can now package resources such as images, scripts, and other files within their extensions and access these resources directly from AL code. This feature simplifies the management of extension assets and ensures that all necessary resources are bundled together, reducing the complexity of deployment and maintenance.
Find out more about packaging resources in extensions here.
Pull Extension Source from GitHub When Opening Visual Studio Code from the Web Client
This integration enables developers to pull the source code of extensions directly from GitHub when opening Visual Studio Code from the Business Central web client. It streamlines the development workflow by allowing seamless access to version-controlled code, facilitating collaboration and ensuring that the latest codebase is always at hand.
From the Extension Management list page, you now have a new Open Source in VS Code option in the context menu for an extension:
If you invoke Open Source in VS Code, Visual Studio Code will open and ask you whether to clone or open the GitHub repo for the extension. It will use the repo metadata that was included in the extension when it was built:
Explore this feature in detail here.
Restore Extensions if Publishing from Visual Studio Code Fails
In scenarios where publishing an extension from Visual Studio Code fails, this new feature provides the ability to restore the previous version of the extension. It helps maintain system stability and reduces downtime by quickly reverting to a known good state, ensuring that development issues do not disrupt ongoing business operations.
Learn more about restoring extensions here.
Run Code Action for 'with' for File, Project, or Workspace
The new code action feature allows developers to apply the ‘with’ statement across files, projects, or entire workspaces. This can significantly speed up the development process by automating repetitive tasks and ensuring consistent code formatting and structure across your codebase.
Discover more about running code actions here.
Set Up Easier In-Client Performance Profiling with Rules
Performance profiling within the client has been made easier with the introduction of profiling rules. Developers can now set up and manage performance profiling directly from the client, allowing for more accurate and efficient identification of performance bottlenecks and optimization opportunities.
This example shows how you can set up a schedule for capturing profiles for a specific user’s browser activity during 5 days:
Read more about performance profiling here.
Improved Features for Report Documents
Business Central now includes improved features for working with report documents. These enhancements allow for more flexible and powerful report generation, catering to complex reporting needs and providing better insights through customized report layouts and data presentation.
The following improvements are available for the Word layout feature:
- You can use sections in Word layouts even when you use the WordMergeDataItem property. This unlocks the ability to change layout properties, such as margins, orientation (portrait or landscape), or columns inside your Word layout. Also, you can use different watermarks for different parts of the layout. For more information, go to Using sections in a Word layout.
- From the Report Layouts page, you can download a Word layout template for a report. The layout template makes it easier to convert an RDL layout or a customer-supplied Word file into a Word layout for a report.
- A new Word add-in lets you control conditional visibility of text, tables, or table rows/columns.
Learn more about report document improvements here.
Use the Ternary Operator When Coding in the AL Language
The introduction of the ternary operator in AL language is a significant addition, enabling more concise and readable conditional expressions. This operator allows developers to write more streamlined and efficient code, improving overall code quality.
Here’s an example of using if-then-else as until now and the new ternary operator:
Discover how to use the ternary operator here.
Use the 'this' Keyword for Codeunit Self-Reference
The ‘this’ keyword is now available for self-referencing within codeunits. This enhancement simplifies the coding process by providing a straightforward way to reference the current instance of a codeunit, making the code more intuitive and easier to manage.
Read more about the ‘this’ keyword here.
Conclusion
Stay tuned for more detailed explorations of these features as we approach the official release date. For a complete overview of all the upcoming features, check out the full release plan.
Meet Berny During, our Partner Technology Strategist for Business Central at Companial. With over 27 years of experience as a Microsoft Certified Trainer, he brings a wealth of expertise and knowledge to his role. Starting as a Product Manager at Navision South Africa and subsequently at Microsoft, he later established his own successful partner. Joining Companial as a franchisee in the Middle East-African market, Berny once again played a crucial role in guiding partners to grow and develop their Business Central practices through mentoring and training. He holds qualifications in Business Management, Taxation, Law, Supply Chain Management, and Computer Sciences.
Meer over Business Central
Business Central 2024 Release Wave 2 Preview Version is Now Available!
The preview version of Microsoft Dynamics 365 Business Central 2024 Release Wave 2, also known as version 25, has officially ...
Meer lezenDeep Dive: Managing Updates in Business Central 2024 Release Wave 2
In my previous series of four blogs, I provided an overview of the exciting changes coming to Microsoft Dynamics Business ...
Meer lezenCoPilot Changes in Business Central 2024 Release Wave 2 (v25)
As we delve into the final instalment of our blog series on the upcoming features in Microsoft Dynamics 365 Business ...
Meer lezenArchitectural Enhancements in Business Central 2024 Release Wave 2 (v25)
As we continue our exploration of the upcoming features in Business Central 2024 Release Wave 2 (v25), this third blog ...
Meer lezenFirst Look: Exciting New Features in Microsoft Dynamics Business Central 2024 Release Wave 2 (v25)
Microsoft has recently unveiled a sneak peek into the upcoming Dynamics Business Central 2024 Release Wave 2 (v25), and I ...
Meer lezen