Accounts receivable manager, Information technology manager, Rental coordinator agent and 4 more roles
Business process
Manage data
Menu item
SalesParmCleanUp
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, “Old history is removed”, 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
A periodic job that deletes old sales update history that is created when confirmations, picking lists, packing slips and invoices are posted.
What you do here
Use this periodic task to keep sales posting fast by removing update history that is no longer needed.
Example
For example, BEAT posts about 8,000 invoices a day from its stores and web shop. A nightly cleanup that keeps 30 days of update history stops the history tables from growing past a few hundred thousand rows.
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.
When to run it
When to run it
When sales update history from confirmations, picking lists, packing slips and invoices has piled up and starts to slow down sales posting.
How often
Every three months, and at least every six months, as Microsoft recommends.
Batch settings
Run it as a recurring batch job with Retain records based on age set to Yes. Each run stops after two hours, so the first cleanup of a large backlog may take several runs.
What the output shows
Old update history records are deleted, so the History on update page shows only recent records. If posting stays slow, the backlog may need more runs, or the Clean up choice may be keeping erroneous records.
Delete old update history created when confirmations, picking lists, packing slips and invoices are posted.
Steps from Microsoft
Go to Retail and Commerce > Retail and Commerce IT > Clean up > Sales update history cleanup.
In the Clean up field, select Executed to delete only fully processed records, Executed and erroneous to also delete records with errors, or All to also delete waiting records that aren't fully processed yet.
Set Retain records based on age to Yes for a recurring job, so the age is calculated on the day it runs; set it to No to delete records created before a fixed date.
Enter the Maximum age in days (when the option is Yes) or the Created until date (when it is No).
Schedule it on the Run in the background FastTab, then check the batch job history: one run lasts at most two hours, so a large backlog can need several runs.
Post a sales confirmation or invoice afterwards and check that posting is as fast as expected.
Schedule it as a recurring batch job that keeps records based on age, for example the last 30 days.The history tables grow with every posting and slow down functions that query them.
DutyEnable quotation to sales order processRentalSalesQuotationToSlsOrdProcessEnable
PrivilegeClean up sales update historySalesParmCleanUpProcess
RoleRental managerRentalManager
DutyEnable quotation to sales order processRentalSalesQuotationToSlsOrdProcessEnable
PrivilegeClean up sales update historySalesParmCleanUpProcess
RoleRental sales managerRentalSalesManager
DutyEnable quotation to sales order processRentalSalesQuotationToSlsOrdProcessEnable
PrivilegeClean up sales update historySalesParmCleanUpProcess
RoleRetail serviceRetailService
DutyEnable quotation to sales order processSalesQuotationToSalesOrderProcessEnable
PrivilegeClean up sales update historySalesParmCleanUpProcess
RoleSales managerTradeSalesManager
DutyEnable quotation to sales order processSalesQuotationToSalesOrderProcessEnable
PrivilegeClean up sales update historySalesParmCleanUpProcess
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 it
To use itRetail service RetailServiceSales manager TradeSalesManagerInformation technology manager SysServerITManagerRental manager RentalManagerRental coordinator agent RentalCoordinatorAgentGive people one of these roles. On this system, 7 roles can run this page.Checked in Dynamics 365
Developer
7Developer
Open it by URL
https://<your-environment>/?mi=SalesParmCleanUp
Data migration
Load order: Sales update history cleanup has no data entity in Data management, so it can't be loaded from a file or a configuration template. It works on data that is already in the system, so there is nothing to load.Checked in Dynamics 365