Experience Salesforce

Undelete | Apex DML Standalone Statement

What You’ll Learn

  • Undelete In Apex

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;

salesforce-developer
Next Topic

Need Extra Support? Our FREE study materials have got you covered.

Our expert-prepared study materials provide the answers you need. Clear your doubts and improve your skills with detailed notes from industry professionals.

cts-img
Rakshabandhan Sale