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
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;
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
Your Perfect
Salesforce Career Awaits
Get Your Assignment Now