Undelete In Apex
To restore or undelete the record from recycle bin, you need to use undelete statement.
Example
List < Contact > deletedContacts = [SELECT Name FROM Contact
WHERE isDeleted = true ALL ROWS
];
undelete deletedContacts;
What You’ll Learn
Undelete opertion in Salesforce
Example of Undelete operation in Salesforce
To restore or undelete the record from recycle bin, you need to use undelete statement.
List < Contact > deletedContacts = [SELECT Name FROM Contact
WHERE isDeleted = true ALL ROWS
];
undelete deletedContacts;
Get access to exclusive study material for Salesforce Certification and ace your exams!
Hey there! Glad you made it through our Salesforce Developer Training for beginners. But wait! We've got some high-in-demand Salesforce courses for you to take your Salesforce skills to the next level, making you a desired professional in the Salesforce job market.
REGISTER NOW
detemine the perfect
Salesforce profile for yourself.
Get Your Assgimnment Now