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
Akash Choudhary 17Akash Choudhary 17 

Update the old values of the record

Hi All,

while updating a particular field of an object for a single record by mistake I updated that field for all the records present for that object. I want my field to have old values restored. there is no history tracking for that object. can we do it through trigger or class. 
kindly help its urgent.

Thanks
 
CarlosLimaCarlosLima
There's no way to turn it back manually, that's important always keep a backup before testing and also checking if the changes will make a big impact before deploy.

Salesforce has an article which might help: https://help.salesforce.com/articleView?id=000334121&language=en_US&type=1&mode=1