Loading

Best practices for deleting orders in B2C Commerce

Дата публикации: Apr 11, 2025
Описание

Delete orders on any instance.

Решение

Deleting test orders before going live:

  • Log into Business Manager
  • Go to Merchant Tools > Site Preferences > Order > Order Retention.
  • Set Order Retention to '1'.
  • The nightly system object removal job will purge the orders based on the last modified date.

This specifies the number of days the system stores orders. Orders older than the specified number of days will be automatically removed from the system. Leave blank if orders should never be purged from the system.

Note the following:

  • Make sure to change this back to more then a day '1' so it retains orders after all test orders have been removed.
  • You may want to remove all test orders before go live. So set to retention of '1' after the test orders are removed the setting should be changed back.


Deleting Orders:

One or more orders can be deleted via the Orders module under Merchant Tools > Ordering. A user in Business Manager performs a order search, selects one or more orders that need to be deleted and clicks on the Delete button at the bottom of the results grid. To perform this operation, the user's role must have the Delete_Order functional permission. More information can be seen in Delete Orders.

Note: Only orders in the Created, Cancelled, Replaced, Failed or Exported statuses as well as orders where there's no associated replacement order can be deleted via this method.

Delete and then ReImport Corrected Order:

  • Export the order
  • Delete the order using one of the processes listed above.
  • Correct the order, and Upload the file to Merchant Tools >  Ordering >  Import & Export > Manage Import Files
  • Contact Support requesting that the order file be imported. For more information, see Order Object Import and Export in B2C Commerce.
Номер статьи базы знаний

000391583

 
Загрузка
Salesforce Help | Article