BeyondERP.Newsletter
Menu

Job page · Retail and Commerce

Delete sales orders

A periodic job that deletes selected sales orders.

Used by
Credit management clerk, Credit management manager, Project assistant and 7 more roles
Business process
Manage sales orders
Menu item
SalesDelete
Main table
SalesParmTable
Show what matters for
PAGE GUIDEWhat the page does and how to use it7 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA periodic job that deletes selected sales orders.
What you do hereUse this periodic task to remove sales orders you no longer need, including orphaned sales order records.
ExampleFor example, run it to clean up orphaned sales order records.
Delete sales orders 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 sales orders
Menu pathRetail and Commerce › Retail and Commerce IT › Clean up › Delete sales orders
Related pagesDelete quotations Microsoft Learn Delete return orders Microsoft Learn Sales update history cleanup Microsoft Learn Order events cleanup 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 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 oftenOn demand, when there are sales orders or orphaned sales order records to remove.
What the output showsThe 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.

Source: Microsoft Learn

Steps from Microsoft

  1. Go to Retail and Commerce > Retail and Commerce IT > Clean up > Delete sales orders.
  2. Filter the list to find the sales orders you no longer need, including orphaned sales order records.
  3. Review the Sales order, Customer account, Name, Date of creation, Document status and Deadline columns so you only pick orders that can go.
  4. Use Select on the toolbar to choose the sales orders to delete.
  5. Select Confirm deletion, Delete or Batch for the delete action you need, then open All sales orders and check that only the chosen orders are gone.

Source: Microsoft Learn

Test checklist

  1. The deleted orders no longer appear in All sales orders.
  2. Orders that weren't selected are unchanged.

Source: Microsoft Learn

Solution architect

4Design impact

Shared or per companyPer company: each legal entity has its own records. Microsoft data model
Can it be undoneNo: Deleted sales orders can't be restored. For an invoiced order, its details stay available under Customer account > Transactions > Original document > View details. Microsoft Learn
If you change it laterDeletes the selected sales orders, including orphaned sales order records, in the current legal entity. Microsoft Learn
Technical architect

5Technical

Menu itemSalesDelete Checked in Dynamics 365
FormSalesDeleteOrder Checked in Dynamics 365
TableSalesParmTableShown as “Sales order - update table” in Record infoKey field: SalesIdChecked in Dynamics 365
Who can open itPrivilegesProcess sales order deletion SalesDeleteProcessDutiesMaintain rental sales orders RentalSalesOrderMaintainMaintain sales order SalesOrderMaintain
11 security rolesCredit management clerk CredManClerkCredit management manager CredManManager MCRTestUserRoleProject assistant ProjProjectClerkRental coordinator agent RentalCoordinatorAgentRental manager RentalManagerRental purchasing manager RentalPurchasingManagerRental sales manager RentalSalesManagerRetail service RetailServiceRevenue recognition manager RevRecManagerSales clerk TradeSalesClerk
Checked in Dynamics 365
Roles to set it up and use itTo 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 pageOptions: Personalize, Page options, ShareChecked in Dynamics 365
Developer

6Developer

Open it by URLhttps://<your-environment>/?mi=SalesDelete
Table definitionSalesParmTable columns and relations Microsoft data model
Everyone

7Sources