BeyondERP.Newsletter
Menu

Job page · Warehouse management

Clean up return details

A periodic task that deletes return details records for shipments shipped more than a given number of days ago.

Used by
Credit management clerk, Credit management manager, Customer service representative and 9 more roles
Business process
Manage warehouse operations
Menu item
action:WHSReturnDetailCleanUp
Data entity
None for this page's own settings
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, “Clean old return details”, to confirm this setup in your own test environment.
Show what matters for
PAGE GUIDEWhat the page does and how to use it8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA periodic task that deletes return details records for shipments shipped more than a given number of days ago.
What you do hereUse this task to remove old return details records, which the system creates when an order is shipped so that an unannounced return can be received against its return ID. The dialog states that it deletes the return details that were shipped before the number of days to keep.
ExampleFor example, BEAT accepts returns for 30 days, and return-until dates are set from that. A monthly run with The number of days to keep = 365 removes return details of shipments from more than a year ago, in batches of at most 100,000 records.
Clean up return details 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 warehouse operations
Menu pathWarehouse management › Periodic tasks › Clean up › Clean up return details
Set up firstReturn item receiving policies Microsoft Learn
Used next byReturn details Microsoft Learn
Related pagesMixed license plate receiving Microsoft Learn
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 return details of old shipments are far past their return-until dates.
How oftenMonthly.
What the output showsReturn details records older than the days to keep, up to the maximum count, are deleted.

Source: Checked in Dynamics 365

Setup steps on this page

Keep return details beyond the return-until period

Use this job to delete return details of old shipments.

Steps from Microsoft

  1. Go to Warehouse management > Periodic tasks > Clean up > Clean up return details.
  2. In The number of days to keep, enter a number of days well beyond your return-until period (the dialog suggests 365).
  3. In Maximum clean-up records count, keep 100,000 or lower it.
  4. Set it up in Run in the background and run it.
  5. Open Inquiries and reports > Return details and check that only recent shipments remain.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
The number of days to keepReturn details of shipments shipped before this number of days are deleted. The dialog opens with 365.Checked in Dynamics 365365
Maximum clean-up records countThe most records one run deletes. The dialog opens with 100,000.Checked in Dynamics 365100000

Common errors and fixes

MessageWhat to do
A worker scans a return label and the return ID isn't foundIts return details record was deleted. Keep more days than the return-until period, or use the Blind return process for late returns. Microsoft Learn

Test checklist

  1. Run the job in a test company with 365 days.
  2. Open Return details and check that no record shipped more than 365 days ago remains.
  3. Receive a return in the app against a recent return ID.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Keep return details beyond the return-until periodKeep the 365-day default, or at least several times the longest return-until period, and run it monthly.A return can only be received against an existing return details record.How long are return details kept?Setting the days below the return-until period, so customers' return labels stop working.Test: Clean old return details

Feature management and licence

Licence or add-inWarehouse management is part of the Dynamics 365 Supply Chain Management licence. In this system 12 roles can open this page, among them Customer service representative, Sales representative, Sales clerk and Retail service.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: return details belong to a legal entity (their Data management entity isn't shared). Checked in Dynamics 365
Can it be undoneNo: Deleted return details can't be restored. Keep more days than the longest return-until period. Microsoft Learn
If you change it laterDeletes return details records. Only items, quantities and tracking dimensions in a return details record can be returned through the Return details process, so a customer can't return against a deleted return ID. Microsoft Learn
Technical architect

6Technical

Menu itemaction:WHSReturnDetailCleanUp Checked in Dynamics 365
Data entitiesWHSReturnDetailEntityReturn details (The return details records this job deletes; export them first if needed.)
Who can open it

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

  • RoleCredit management clerkCredManClerk
    • DutyMaintain sales orderSalesOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
  • RoleCredit management managerCredManManager
    • DutyMaintain sales orderSalesOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
  • RoleCustomer service representativeTradeCustomerServiceRepresentative
    • DutyMaintain sales return orderReturnSalesReturnOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
  • RoleProject assistantProjProjectClerk
    • DutyMaintain sales orderSalesOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
  • RoleRental coordinator agentRentalCoordinatorAgent
    • DutyMaintain sales return orderReturnSalesReturnOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
    • DutyMaintain sales orderSalesOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
  • RoleRental managerRentalManager
    • DutyMaintain sales return orderReturnSalesReturnOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
    • DutyMaintain sales orderSalesOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
  • RoleRental purchasing managerRentalPurchasingManager
    • DutyMaintain sales orderSalesOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
  • RoleRental sales managerRentalSalesManager
    • DutyMaintain sales orderSalesOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
  • RoleRetail serviceRetailService
    • DutyMaintain sales orderSalesOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
  • RoleRevenue recognition managerRevRecManager
    • DutyMaintain sales orderSalesOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
  • RoleSales clerkTradeSalesClerk
    • DutyMaintain sales orderSalesOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
  • RoleSales representativeTradeSalesRepresentative
    • DutyMaintain sales return orderReturnSalesReturnOrderMaintain
      • PrivilegeProcess return details clean upWHSReturnDetailCleanUpProcess
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 itCustomer service representative TradeCustomerServiceRepresentativeSales representative TradeSalesRepresentativeSales clerk TradeSalesClerkRetail service RetailServiceProject assistant ProjProjectClerkGive people one of these roles. On this system, 12 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:WHSReturnDetailCleanUp
Data migrationWHSReturnDetailEntity Only return details still inside the return-until period, if returns of old shipments must be accepted after go-live.Load order: Migrate return details only for shipments still within their return-until date; older ones can be cleaned up.Load first: Customers, Sales ordersMicrosoft Learn
Everyone

8Sources