---
schema_version: "1"
id: 111f8e5be0be888fca9d08077e7151ad36d65d1286e79580c072e2afc8766d8a
title: Triggers and Recovered Records
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/apex_triggers_recovered_records.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_recovered_records.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0679841d734bd5a9c116ee959b3fa6c69e836e129331d2b71df6bf92551022c0
---
# Triggers and Recovered Records

The after undelete trigger event only works with recovered records—that is, records that were deleted and then recovered from the Recycle Bin through the undelete DML statement. These are also called undeleted records.

The after undelete trigger events only run on top-level objects. For example, if you delete an Account, an Opportunity may also be deleted. When you recover the Account from the Recycle Bin, the Opportunity is also recovered. If there is an after undelete trigger event associated with both the Account and the Opportunity, only the Account after undelete trigger event executes.

The after undelete trigger event only fires for custom objects and these standard objects.

- Account
- Asset
- Campaign
- Case
- Contact
- ContentDocument
- Contract
- Event
- Lead
- Opportunity
- Product
- Solution
- Task

- [← Previous](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_merge_statements.htm "Triggers and Merge Statements")
- [Next →](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_order_of_execution.htm "Triggers and Order of Execution")