BeyondERP.Newsletter
Menu

Setup step on the Update expiry dates page · Inventory management

Update expiry dates

Recalculate or set the expiration 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:PdsUpdateExpDate
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, “Expiration 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 expiration date of one or more inventory batches.
What you do hereUse this periodic task to recalculate batch expiration dates from the product's shelf life, or to set a fixed date.
ExampleFor example, a lab test shows that BEAT's batch B-2026-0388 of syrup BEAT-000630 keeps only until 12/31/2026 instead of 3/31/2027. BEAT runs Update expiry dates with Fixed and 12/31/2026 for that one batch, and master planning stops using it after that date.
Update expiry 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 expiry dates
Set up firstReleased products Microsoft Learn
Used next byBatches Microsoft Learn
Related pagesShelf life as of date Microsoft Learn
In this process Update best before dates · Validate batch status
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 batch expiration dates must change, for example after the Shelf life period in days of the product changed or a batch was found to expire earlier or later.
How oftenOn demand, when expiration dates need to change.
Batch settingsSet up the batch job only when many batches are selected.
What the output showsUpdated expiration dates on the selected batches. Master planning and reservation rules that use shelf life follow the new date, so an unexpected expired batch usually means a wrong manufacturing date or shelf life period.

Source: Microsoft Learn

Setup steps on this page

Update expiry dates

Recalculate or set the expiration date of selected batches.

Steps from Microsoft

  1. Go to Inventory management > Periodic tasks > Batches > Update expiry dates.
  2. In Data calculation type, select System to set the expiration date to the batch's manufacturing date plus the shelf life period in days, or Fixed to enter the date yourself.
  3. If you selected Fixed, enter the new date in Expiration date.
  4. Select Select and filter the batches whose expiration date should change.
  5. Select OK, then open the batches and check the new expiration dates; the batch is unusable after that date.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Data calculation typeWith System, the expiration date is the batch production date plus the shelf life period in days; with Fixed, you enter the date.Microsoft Learn System
Expiration dateThe new expiration date to apply when the Fixed type is used.Microsoft Learn 12/31/2026

Common errors and fixes

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

Test checklist

  1. Note the expiration date of two batches of an item.
  2. Change the item's Shelf life 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 expiration date and the other is unchanged.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Update expiry datesUse System after the Shelf life 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 Shelf life period in days; Fixed writes the same date to every selected batch.How should the expiration date be updated?Running it without a filter, which changes the expiration date of batches that were fine and affects which batches planning and reservations can use.Test: Expiration 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 expiration date of the selected batches, which affects whether they can still be used, planned and sold. Microsoft Learn
Technical architect

6Technical

Menu itemaction:PdsUpdateExpDate 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 update of shelf life datesPdsUpdateExpDateMaintain
  • RoleQuality control clerkInventQualityControlClerk
    • DutyMaintain tracking dimensions masterInventTrackingDimensionsMasterMaintain
      • PrivilegeMaintain update of shelf life datesPdsUpdateExpDateMaintain
  • RoleReceiving clerkInventReceivingClerk
    • DutyMaintain tracking dimensions masterInventTrackingDimensionsMasterMaintain
      • PrivilegeMaintain update of shelf life datesPdsUpdateExpDateMaintain
  • RoleSales managerTradeSalesManager
    • DutyMaintain tracking dimensions masterInventTrackingDimensionsMasterMaintain
      • PrivilegeMaintain update of shelf life datesPdsUpdateExpDateMaintain
  • RoleShipping clerkInventShippingClerk
    • DutyMaintain tracking dimensions masterInventTrackingDimensionsMasterMaintain
      • PrivilegeMaintain update of shelf life datesPdsUpdateExpDateMaintain
  • RoleWarehouse workerWMSWarehouseWorker
    • DutyMaintain tracking dimensions masterInventTrackingDimensionsMasterMaintain
      • PrivilegeMaintain update of shelf life datesPdsUpdateExpDateMaintain
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:PdsUpdateExpDate
Data migrationLoad order: Update expiry 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-250, Update expiry dates. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/IM-JOBA-250