Improved extensibility of reservation management
Important
This content is archived and is not being updated. For the latest documentation, go to New and Planned for Dynamics 365 Business Central. For the latest release plans, go to Dynamics 365 and Microsoft Power Platform release plans.
Enabled for | Public preview | General availability |
---|---|---|
Admins, makers, marketers, or analysts, automatically | Mar 1, 2021 | Apr 1, 2021 |
Feature details
Here is the list of changes and extensibility enhancements in reservation management:
- Entry Summary No. has been converted to enum 338 Reservation Summary Type.
- The Reservation Management codeunit has been reworked to use a subscriber model. A new interface based on RecordRef and RecordVariant replaces a set of procedures for each source table.
- Case statements for each source table have been replaced by events to subscribe in the [SourceTable]Reserve codeunits.
- Each [SourceTable]Reserve.Codeunit contains a set of subscribers to events in the Reservation Management codeunit in order to support reservation.
- Procedures that are related to reservation are added in scope of each source table to support the Reserve codeunits.
As a result of the described changes, you now have the following experience as a developer who extends our code:
- Additional supply/demand tables and pages can be added into the reservation calculation (including availability) using the standard Publisher-Subscriber model.
- The use of global variables and cross-linking of reservation objects methods is eliminated.
- Each source table contains procedures and events as a Reservation interface.
Note that old methods are marked with the [Obsolete] tag but still work, so that we have full compatibility with existing solutions. Make sure that you switch your code to use the new methods as soon as possible, though, and use the content of the obsoleted methods as an example.