BeyondERP.Newsletter
Menu

Setup step on the Delete return orders page · Sales and marketing

Delete unneeded return orders

Remove return orders created by mistake, without touching returns still in progress.

Used by
Rental coordinator agent, Rental manager, Customer service representative and 1 more role
Business process
Process customer returns and exchanges
Menu item
action:SalesDelete_Return
Main table
SalesParmTable
Setup steps
1 on this page
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 cleanup routine that deletes several return orders at once, chosen by criteria.
What you do hereUse it to find return orders by criteria and delete the ones you select, only after the business has confirmed they aren't needed.
ExampleFor example, BEAT finds 12 return orders created by mistake for customer BEAT-000123 (RMA-000501 to RMA-000512), selects them and confirms the deletion with Yes.
Delete return 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 › Process customer returns and exchanges
Menu pathSales and marketing › Periodic tasks › Clean up › Delete return orders
Set up firstCreated return orders Microsoft Learn
Used next byAll return orders Microsoft Learn
Related pagesDelete sales orders Microsoft Learn Delete quotations Microsoft Learn
In this processSet up Disposition codes
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 orders were created by mistake or are no longer needed and the business has confirmed they can be removed.
How oftenOn demand.
Batch settingsUse Batch for a large selection.
What the output showsThe selected return orders are deleted.

Source: Microsoft Learn

Setup steps on this page

Delete unneeded return orders

Remove return orders created by mistake, without touching returns still in progress.

Steps from Microsoft

  1. Go to Sales and marketing > Periodic tasks > Clean up > Delete return orders.
  2. Select Select to open the Sales update page, specify the criteria and select OK.
  3. On the Delete return order page, review the return orders created in the legal entity that match, and select the lines to delete.
  4. Select OK and confirm with Yes, then check that the RMA numbers are gone from All return orders.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Sales orderThe order number of the return order.Checked in Dynamics 365
Customer accountThe customer of the return order.Checked in Dynamics 365BEAT-000123
NameThe customer name.Checked in Dynamics 365
Date of creationWhen the return order was created.Checked in Dynamics 365
DeadlineThe return deadline.Checked in Dynamics 365
RMA numberThe return merchandise authorization number.Checked in Dynamics 365RMA-000501
Return statusThe status of the return order.Checked in Dynamics 365

Common errors and fixes

MessageWhat to do
A return order you expected isn't in the Delete return order list.Only return orders created in the current legal entity that match the criteria on the Sales update page are shown; change the criteria with Select. Microsoft Learn

Test checklist

  1. In a copy, select 3 return orders by customer.
  2. Confirm the deletion with Yes.
  3. Check that the 3 RMA numbers are gone from All return orders and other return orders are unchanged.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Delete unneeded return ordersUse tight criteria on the Sales update page (customer and RMA number range), and cancel rather than delete a return order that is still in Created state when you need a trace.Every selected return order is deleted after Yes; Microsoft notes that sales orders and return orders in Created state can be canceled.Cancel or delete unwanted return orders?Deleting return orders that still have goods on the way, so the receipt has no return order to post against.Test: Delete selected return orders

Feature management and licence

Licence or add-inOn the live system, Customer service representative, Sales representative, Rental manager and Rental coordinator agent can run this routine. No feature in Feature management is needed.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyReturn orders created in the current legal entity that match your criteria. Microsoft Learn
Can it be undoneIrreversible: Deleted return orders can't be restored.
If you change it laterDeletes the selected return orders. Microsoft advises running cleanup routines only after detailed analysis confirms the data is no longer required, and testing them first. On the live system Customer service representative, Sales representative, Rental manager and Rental coordinator agent can run it. Microsoft Learn
Technical architect

6Technical

Menu itemaction:SalesDelete_Return 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 batch deletion of return orders SalesDelete_ReturnProcessDutiesMaintain sales return order ReturnSalesReturnOrderMaintain
4 security rolesRental coordinator agent RentalCoordinatorAgentRental manager RentalManagerCustomer service representative TradeCustomerServiceRepresentativeSales representative TradeSalesRepresentative
Checked in Dynamics 365
Roles to set it up and use itTo use itRental manager RentalManagerRental coordinator agent RentalCoordinatorAgentSales representative TradeSalesRepresentativeCustomer service representative TradeCustomerServiceRepresentativeGive people one of these roles. On this system, 4 roles can run this page.Checked in Dynamics 365
Actions on the pageOptions: Personalize, Page options, ShareChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:SalesDelete_Return
Data migrationLoad order: Delete return orders has no data entity in Data management. It deletes data; there is nothing to migrate.Checked in Dynamics 365
Table definitionSalesParmTable columns and relations Microsoft data model
Everyone

8Sources

To cite this step: SM-JOB-070, Delete unneeded return orders. Beyond ERP Atlas Hub, 2026-11-11. https://www.beyonderp.cloud/atlas/step/SM-JOB-070