BeyondERP.Newsletter
Menu

Setup step on the Delete return orders page · Retail and Commerce

Delete closed return orders

Remove several return orders at once.

See how to set it up Back to Retail and Commerce

Used by
Rental coordinator agent, Rental manager, Customer service representative and 1 more role
Business process
Manage sales orders
Menu item
SalesDelete_Return
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 returns 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 isA periodic job that deletes several return orders at once.
What you do hereUse this periodic task to find return orders by criteria and delete the ones you select.
ExampleFor example, BEAT deletes the 3,200 return orders that were closed more than 2 years ago, once a year after the audit.
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
Menu pathRetail and Commerce › Retail and Commerce IT › Clean up › Delete return orders
Set up firstAll return orders Microsoft Learn
Used next bySales update history cleanup Microsoft Learn
Related pagesDelete sales orders Microsoft Learn Delete quotations Microsoft Learn
In this process Delete sales orders that are no longer needed · Purge old call center orders
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 several return orders are no longer needed and you want to delete them in one go instead of one at a time.
How oftenOn demand, when a set of return orders has to be removed.
What the output showsThe selected return orders are deleted from the legal entity. A return order that is still listed afterwards didn't match the criteria or wasn't selected.

Source: Microsoft Learn

Setup steps on this page

Delete closed return orders

Remove several return orders at once.

Steps from Microsoft

  1. Go to Retail and Commerce > Retail and Commerce IT > Clean up > Delete return orders.
  2. Select Select to open the Sales update page.
  3. Enter the criteria for the return orders, and confirm them. The return orders of the legal entity that match are listed.
  4. Select the return order lines to delete and confirm.
  5. Select Yes to delete the return orders, then check in All return orders that only the selected ones are gone.

Source: Microsoft Learn

Common errors and fixes

MessageWhat to do
A return order can't be deletedReturn orders that aren't finished can't be deleted. Complete or cancel the return first. Microsoft Learn

Test checklist

  1. The selected return orders no longer appear in All return orders.
  2. Return orders outside the criteria are unchanged.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Delete closed return ordersDelete only return orders that are closed or cancelled and past your retention period.Deleting return orders can't be undone.Which return orders may be deleted?Deleting a return order that still has an open credit note or replacement.Test: Old returns are deleted

Feature management and licence

Licence or add-inIn this system 4 roles can open this page, among them Rental coordinator agent, Rental manager, Customer service representative and Sales representative.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: each legal entity has its own records. Microsoft data model
Can it be undoneIrreversible: Deleted return orders can't be restored.
If you change it laterDeletes the selected return orders in the current legal entity. Microsoft Learn
Technical architect

6Technical

Menu itemSalesDelete_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 it

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

  • RoleRental coordinator agentRentalCoordinatorAgent
    • DutyMaintain sales return orderReturnSalesReturnOrderMaintain
      • PrivilegeProcess batch deletion of return ordersSalesDelete_ReturnProcess
  • RoleRental managerRentalManager
    • DutyMaintain sales return orderReturnSalesReturnOrderMaintain
      • PrivilegeProcess batch deletion of return ordersSalesDelete_ReturnProcess
  • RoleCustomer service representativeTradeCustomerServiceRepresentative
    • DutyMaintain sales return orderReturnSalesReturnOrderMaintain
      • PrivilegeProcess batch deletion of return ordersSalesDelete_ReturnProcess
  • RoleSales representativeTradeSalesRepresentative
    • DutyMaintain sales return orderReturnSalesReturnOrderMaintain
      • PrivilegeProcess batch deletion of return ordersSalesDelete_ReturnProcess
Checked in Dynamics 365
Roles to set it up and use itTo use itSales representative TradeSalesRepresentativeCustomer service representative TradeCustomerServiceRepresentativeRental manager RentalManagerRental coordinator agent RentalCoordinatorAgentGive 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=SalesDelete_Return
Data migrationLoad order: Delete return orders 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
Table definitionSalesParmTable columns and relations Microsoft data model
Everyone

8Sources