Free Salesforce Developers Tutorials >

Chapter 8 - Apex DML and Database Methods >

Undelete | Apex DML Standalone Statement

Undelete | Apex DML Standalone Statement

What You’ll Learn


tickUndelete opertion in Salesforce

tickExample of Undelete operation in Salesforce

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;

Download Study Material

Get access to exclusive study material for Salesforce Certification and ace your exams!

Download Now

Our Salesforce Certification Courses

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.

Post a Comment

Your email address will not be published. Required fields are marked *