BeyondERP.Newsletter
Menu

Setup step on the Update best before dates page · Inventory management

Update best before dates

Recalculate or set the best before date of selected batches.

Used by
Purchasing manager, Quality control clerk, Receiving clerk and 3 more roles
Business process
Manage inventory quality
Menu item
action:PdsUpdateBestBefore
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. Some of it is Dynamics AX 2012 documentation, an earlier version.
Tests
A ready-to-run test, “Best before date updated for the selected batch only”, 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 isA periodic job that updates the best before date of one or many inventory batches.
What you do hereUse this periodic task to recalculate or set the date by which batches should be used.
ExampleFor example, BEAT changes the Best before period in days of cold brew BEAT-000620 from 180 to 150. It runs Update best before dates with System for the item's 14 open batches, and batch B-2026-0412, made on 4/12/2026, now has best before date 9/9/2026.
Update best before dates 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

Business processManage inventory quality
Menu pathInventory management › Periodic tasks › Batches › Update best before dates
Set up firstReleased products Microsoft Learn
Used next byBatches Microsoft Learn
Related pagesBest before as of date Microsoft Learn
In this process Explain changed batch dates · Update expiry dates
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.

When to run it

When to run itWhen the best-before date of batches must be recalculated, for example after the Best before period in days of a product changed, or set to a fixed date.
How oftenOn demand, when best-before dates need to change.
Batch settingsUse the Batch tab only for large selections of batches.
What the output showsUpdated best-before dates on the selected batches. A batch is still sellable after this date but may have lost some original properties. A date that looks wrong usually means the batch's manufacturing date or the item's period is wrong.

Source: Microsoft Learn

Setup steps on this page

Update best before dates

Recalculate or set the best before date of selected batches.

Steps from Microsoft

  1. Go to Inventory management > Periodic tasks > Batches > Update best before dates.
  2. In Data calculation type, select System to calculate the date from the item's Best before period in days, or Fixed to set the same date for every selected batch.
  3. If you selected Fixed, enter the new date in Best before date.
  4. Select Select and filter the inventory batches to update, for example on item number.
  5. Select OK, then open the batches and check the new best-before dates.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Data calculation typeWhether the date is calculated by the system from the expiration date or set to a fixed date.Microsoft Learn System
Best before dateThe new best before date to apply when the Fixed type is used.Microsoft Learn 6/30/2027

Common errors and fixes

MessageWhat to do
The best before date calculated by the System type looks wrong.System adds the item's Best before period in days to a date of the batch. Check the batch's manufacturing date and the Best before period in days on the released product, then run the job again. Microsoft Learn

Test checklist

  1. Note the best before date of two batches of an item.
  2. Change the item's Best before period in days or choose Fixed with a new date.
  3. Run the job for one batch only.
  4. Check that this batch shows the new best before date and the other is unchanged.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Update best before datesUse System after the Best before period in days of the product changed, and Fixed only for single batches with a known new date; always filter the batches before you select OK.System recalculates the date from the batch and the product's Best before period in days; Fixed writes the same date to every selected batch.How should the best before date be updated?Using Fixed for many batches made on different dates, which gives them all the same best before date.Test: Best before date updated for the selected batch only

Feature management and licence

Licence or add-inOn the live system, Quality control clerk, Shipping clerk, Purchasing manager, Sales manager and Warehouse worker use this page.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: the job reads and changes only the data of the legal entity you run it in. Batch dates are stored on the batches of that company. Checked in Dynamics 365
Can it be undoneReversible with effort: A new run overwrites the dates again.
If you change it laterChanges the best-before date on the selected batches, which reports use to find inventory past its best-before date. Microsoft Learn
Technical architect

6Technical

Menu itemaction:PdsUpdateBestBefore Checked in Dynamics 365
FormDialog Checked in Dynamics 365
Who can open it

6 security roles. Select a role to see its duties and privileges.

  • RolePurchasing managerTradePurchasingManager
    • DutyMaintain tracking dimensions masterInventTrackingDimensionsMasterMaintain
      • PrivilegeMaintain best before date informationPdsUpdateBestBeforeMaintain
  • RoleQuality control clerkInventQualityControlClerk
    • DutyMaintain tracking dimensions masterInventTrackingDimensionsMasterMaintain
      • PrivilegeMaintain best before date informationPdsUpdateBestBeforeMaintain
  • RoleReceiving clerkInventReceivingClerk
    • DutyMaintain tracking dimensions masterInventTrackingDimensionsMasterMaintain
      • PrivilegeMaintain best before date informationPdsUpdateBestBeforeMaintain
  • RoleSales managerTradeSalesManager
    • DutyMaintain tracking dimensions masterInventTrackingDimensionsMasterMaintain
      • PrivilegeMaintain best before date informationPdsUpdateBestBeforeMaintain
  • RoleShipping clerkInventShippingClerk
    • DutyMaintain tracking dimensions masterInventTrackingDimensionsMasterMaintain
      • PrivilegeMaintain best before date informationPdsUpdateBestBeforeMaintain
  • RoleWarehouse workerWMSWarehouseWorker
    • DutyMaintain tracking dimensions masterInventTrackingDimensionsMasterMaintain
      • PrivilegeMaintain best before date informationPdsUpdateBestBeforeMaintain
Roles worked out from Microsoft's standard security setup and checked in a working Dynamics 365 system (version 10.0.49)
Roles to set it up and use itTo use itQuality control clerk InventQualityControlClerkShipping clerk InventShippingClerkPurchasing manager TradePurchasingManagerSales manager TradeSalesManagerWarehouse worker WMSWarehouseWorkerGive people one of these roles. On this system, 6 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:PdsUpdateBestBefore
Data migrationLoad order: Update best before dates has no data entity in Data management. Batch dates are loaded with the batches themselves. Load released products and batches with their dates first; run this job in the new system only when dates must change.Checked in Dynamics 365
Everyone

8Sources

To cite this step: IM-JOBA-240, Update best before dates. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/IM-JOBA-240