Credit management clerk, Credit management manager, Project assistant and 7 more roles
Business process
Manage sales orders
Menu item
SalesDelete
Main table
SalesParmTable
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 orders are deleted”, 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 selected sales orders.
What you do here
Use this periodic task to remove sales orders you no longer need, including orphaned sales order records.
Example
For example, BEAT keeps sales orders for 3 years. Each January it deletes about 60,000 invoiced orders created before that cut-off, after testing the same selection in a sandbox.
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 orders are no longer needed, or orphaned sales order records must be cleaned up, after the business has confirmed the data isn't required.
How often
On demand, when there are sales orders or orphaned sales order records to remove.
What the output shows
The selected sales orders are removed from the current legal entity. If an invoiced order was deleted by mistake, you can still find its details from the customer's transactions through Original document > View details.
Run it only for orders that are fully invoiced or cancelled and past your retention period, after a test in a copy of production.Deleting orders can't be undone and breaks the link from later documents to the order.
In this system 10 roles can open this page, among them Credit management clerk, Credit management manager, Project assistant and Rental coordinator agent.
PrivilegeProcess sales order deletionSalesDeleteProcess
RoleRental sales managerRentalSalesManager
DutyMaintain sales orderSalesOrderMaintain
PrivilegeProcess sales order deletionSalesDeleteProcess
RoleRetail serviceRetailService
DutyMaintain sales orderSalesOrderMaintain
PrivilegeProcess sales order deletionSalesDeleteProcess
RoleRevenue recognition managerRevRecManager
DutyMaintain sales orderSalesOrderMaintain
PrivilegeProcess sales order deletionSalesDeleteProcess
RoleSales clerkTradeSalesClerk
DutyMaintain sales orderSalesOrderMaintain
PrivilegeProcess sales order deletionSalesDeleteProcess
Checked in Dynamics 365
Roles to set it up and use it
To use itRetail service RetailServiceSales clerk TradeSalesClerkRental manager RentalManagerRental coordinator agent RentalCoordinatorAgentRental sales manager RentalSalesManagerGive people one of these roles. On this system, 10 roles can run this page.Checked in Dynamics 365
Actions on the page
Options: Personalize, Page options, ShareChecked in Dynamics 365
Developer
7Developer
Open it by URL
https://<your-environment>/?mi=SalesDelete
Data migration
Load order: Delete sales orders has no data entity in Data management, so it can't be loaded from a file or a configuration template. Migrate only the open orders you need; this job removes orders that are already in the system.Checked in Dynamics 365