function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lorenzo PeregoLorenzo Perego 

Mass delete order, deactivate all

How can i make a mass Delete of orders?

The error is that i can't delete an active order, that's ok.

So the question is how can i deactivate multiple orders?
I tryed to change status like Status='a deactivated category status' but it doesn't work.

Thanks all

 
Best Answer chosen by Lorenzo Perego
NagendraNagendra (Salesforce Developers) 
Hi Lorenzo,

Please find the below explanation.

Assign Order Permissions: From assign order permissions Edit Activated Orders Allows a user to edit orders, even if the orders were activated, and to deactivate orders. If a user doesn’t have this permission but has “Edit” on orders, the user can change orders only if they aren’t activated.

To expand in detail about deleting multiple orders:

If your edition of Salesforce supports data loader, you can use the same to mass delete orders. Data Loader is available for Enterprise edition and above.If you are on Professional edition, you can utilize dataloader.io a 3rd party tool and this free for up to 10000 records

Assuming you have the extract of the orders that you want to delete, the one and only field that is required is the Id field i.e. 15 digit Id of the order record.
If you do not have an extract of the orders, create a report and include the Id field in the report and then export the report, save the file in CSV format and perform delete operation using data loader.

Setup - Data Management - Data Loader (this is the Navigation path to Data Loader and if you do not find Data Loader under the Data Management section the Setup Menu then its a case that you are on an edition where data loader is not available

Hope this information helps.

Mark this as solved if it's resolved.

Thanks,
Nagendra

All Answers

NagendraNagendra (Salesforce Developers) 
Hi Lorenzo,

Please find the below explanation.

Assign Order Permissions: From assign order permissions Edit Activated Orders Allows a user to edit orders, even if the orders were activated, and to deactivate orders. If a user doesn’t have this permission but has “Edit” on orders, the user can change orders only if they aren’t activated.

To expand in detail about deleting multiple orders:

If your edition of Salesforce supports data loader, you can use the same to mass delete orders. Data Loader is available for Enterprise edition and above.If you are on Professional edition, you can utilize dataloader.io a 3rd party tool and this free for up to 10000 records

Assuming you have the extract of the orders that you want to delete, the one and only field that is required is the Id field i.e. 15 digit Id of the order record.
If you do not have an extract of the orders, create a report and include the Id field in the report and then export the report, save the file in CSV format and perform delete operation using data loader.

Setup - Data Management - Data Loader (this is the Navigation path to Data Loader and if you do not find Data Loader under the Data Management section the Setup Menu then its a case that you are on an edition where data loader is not available

Hope this information helps.

Mark this as solved if it's resolved.

Thanks,
Nagendra
This was selected as the best answer
rima khanrima khan

Hate the pick lists. I had a 4400 item state and country to enter. I used a looping script in FileMaker to execute an AppleScript, to execute JavaScripts in Safari, to enter pick list values. Complicated but it worked.
rima khanrima khan


Hate the pick lists. I had a 4400 item state and country to enter. I used a looping script in FileMaker to execute an AppleScript, to execute JavaScripts in Safari, to enter pick list values. Complicated but it worked.
my issue has been solved!!

_____________________
Xvideos (https://ovo.fyi/xvideos/) Xnxx (https://ovo.fyi/xnxx/) . Chaturbate (https://ovo.fyi/chaturbate/)