BeyondERP.Newsletter
Menu

Setup step on the Best before as of date page · Inventory management

Review batches by best before date

Find on-hand batches that pass their best before date by a chosen date.

See how to set it up Back to Inventory management

Used by
Quality control manager, Warehouse manager
Business process
Manage inventory quality
Menu item
PdsInventBatchBestBefore
Main table
InventBatch
Data entity
InventItemBatchEntity
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
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 isAn 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 hereUse 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.
ExampleFor 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.
Best before as of date page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

End user · Functional consultant

3How to do it

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

  1. Go to Inventory management > Inquiries and reports > Batches > Best before as of date.
  2. 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.
  3. Sort on Best before date and read the inventory quantity of each batch.
  4. For a batch that must not be sold or used, select Reset batch disposition code and choose an unavailable code.
  5. Select Transactions to see where the batch is used, or Display dimensions to show the warehouse and location.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
As of dateThe date the batches are checked against.Checked in Dynamics 3652026-11-30
Manufacturing dateThe batch's date of manufacture; the best before period is added to it to get the best before date.Microsoft Learn 2026-05-01
Best before periodThe number of days after manufacture after which a batch can still be sold but may have lost some of its original properties.Microsoft Learn 240
Best before dateManufacturing date plus best before period.Microsoft Learn 2026-11-27
Batch disposition codeThe code that marks the batch as available or unavailable for planning, reservation, picking and shipping.Microsoft Learn QC-HOLD

Common errors and fixes

MessageWhat 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

  1. Take a batch item with a best before period of 30 days and receive a batch with manufacturing date 30 days ago.
  2. Open Best before as of date with As of date today.
  3. Find the batch.
  4. Check that its Best before date is the manufacturing date plus 30 days and that its quantity matches the on-hand.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Review batches by best before dateSet 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.What happens to batches past their best before date?Reading the list with today's date only, so batches that pass their date before they are shipped aren't caught.Test: Best before as of date lists batches by date

Feature management and licence

Licence or add-inOn the live system, Quality control manager and Warehouse manager use this page.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: each legal entity has its own batches. Microsoft data model
Can it be undoneReversible: The view changes nothing; disposition code resets can be reset again.
If you change it laterViewing 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 itemPdsInventBatchBestBefore Checked in Dynamics 365
FormPdsInventBatchBestBefore Checked in Dynamics 365
TableInventBatchShown as “Batches” in Record infoKey field: inventBatchId, itemIdChecked in Dynamics 365
Data entitiesInventItemBatchEntityItem batches Microsoft data model
Who can open it

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 itTo 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 pageOptions: Personalize, Page options, ShareChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=PdsInventBatchBestBefore
Integrate withInventItemBatchEntity data entity Microsoft data model
Data migrationInventItemBatchEntity 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
Table definitionInventBatch columns and relations Microsoft data model
Everyone

8Sources

To cite this step: IM-INQA-100, Review batches by best before date. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/IM-INQA-100