Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Best before as of date lists batches by date”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone
1What it is and why
What it is
An inquiry page that lists batches as of a date you choose with their best before date, best before period, batch disposition and inventory quantities, so you can see which stock is past or near its best before date.
What you do here
Use it to find on-hand batches that have reached their best before date on a given date and act on them, for example by resetting the batch disposition code so they can't be reserved or shipped.
Example
For example, BEAT runs Best before as of date for 2026-12-01 and finds batch B-2604-11 of BEAT-000527, made on 2026-04-01 with a best before period of 240 days, past its best before date of 2026-11-27 with 18.00 cases left, so sales offer it at a discount while it is still sellable.
The page in Dynamics 365. page title tab to open what to set or check
About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.
Setup steps on this page
Review batches by best before date
Find on-hand batches that pass their best before date by a chosen date.
Steps from Microsoft
Go to Inventory management > Inquiries and reports > Batches > Best before as of date.
Set the As of date, for example the last day of next month, to see what will have passed its best before date by then.
Sort on Best before date and read the inventory quantity of each batch.
For a batch that must not be sold or used, select Reset batch disposition code and choose an unavailable code.
Select Transactions to see where the batch is used, or Display dimensions to show the warehouse and location.
The code that marks the batch as available or unavailable for planning, reservation, picking and shipping.Microsoft Learn
QC-HOLD
Common errors and fixes
Message
What to do
A batch shows no best before date.
The item has no best before period in days on the released product, or the batch was created before it was set. Set the period, then update the batch dates. Microsoft Learn
Test checklist
Take a batch item with a best before period of 30 days and receive a batch with manufacturing date 30 days ago.
Open Best before as of date with As of date today.
Find the batch.
Check that its Best before date is the manufacturing date plus 30 days and that its quantity matches the on-hand.
Set the As of date ahead, for example to the end of next month, and review the list weekly; block batches that must not ship with an unavailable disposition code.The As of date decides which batches count as past their date; using today shows only what is already too late to act on.
Reversible: The view changes nothing; disposition code resets can be reset again.
If you change it later
Viewing changes nothing. Reset batch disposition code changes whether the batch can be planned, reserved, picked and shipped, as set on the disposition code. Microsoft Learn
Technical architect
6Technical
Menu item
PdsInventBatchBestBeforeChecked in Dynamics 365
Form
PdsInventBatchBestBeforeChecked in Dynamics 365
Table
InventBatchShown as “Batches” in Record infoKey field: inventBatchId, itemIdChecked in Dynamics 365
2 security roles. Select a role to see its duties and privileges.
RoleQuality control managerInventQualityControlManager
DutyInquire into tracking dimensions masterInventTrackingDimensionsMasterInquire
PrivilegeView inventory batches past best before datePdsInventBatchBestBeforeView
RoleWarehouse managerWMSWarehouseManager
DutyInquire into tracking dimensions masterInventTrackingDimensionsMasterInquire
PrivilegeView inventory batches past best before datePdsInventBatchBestBeforeView
Checked in Dynamics 365
Roles to set it up and use it
To use itQuality control manager InventQualityControlManagerWarehouse manager WMSWarehouseManagerGive people one of these roles. On this system, 2 roles can open this page.Checked in Dynamics 365
Actions on the page
Options: Personalize, Page options, ShareChecked in Dynamics 365
InventItemBatchEntity Load batches with manufacturing and best before dates before the opening on-hand journal that uses them.Load order: Load released products with their shelf periods, then batches through Item batches, then opening on-hand per batch with an inventory journal.Load first: Released products, Tracking dimension groupsMicrosoft Learn