Loading
Set Up and Maintain Your Salesforce Organization
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Unarchive from Archive Search or Archive Widget

          Unarchive from Archive Search or Archive Widget

          Restore archived records with Archive Search or Archive Widget in the Archive app.

          To preserve original audit trail data such as CreatedBy, CreatedDate, ModifiedBy, and ModifiedDate on restored records, assign the Set Audit Fields upon Record Creation permission to the Integration User.

          Important Considerations

          • When you unarchive a root record, any related child record is also unarchived automatically.
          • Related records that were archived independently can only be unarchived if their root record is unarchived first.
          • Unarchived records are assigned new IDs upon reinsertion.
          • You can access logs detailing the unarchiving process in the Activities tab.

          Records with related references require special handling during unarchiving. For more information, see Manage Related Records During Unarchive.

          Note
          Note These steps refer to unarchiving root records.
          • Manage Related Records During Unarchive
            When you unarchive a record, the Archive app deletes it from the archive database and unarchives it to your org. The Manage Related Records setting verifies data integrity during the unarchive process. Whether you want to bypass dependencies, remove reference links, or fully restore relationships, this setting provides the tools to do so safely and efficiently.
          • Retry Unarchive
            If an unarchive operation fails in the Archive app, retry the unarchive operation for records that failed during the original attempt. The Retry Unarchive feature reruns the unarchive process with the same or adjusted settings.
          • Preserve the Original Case Number When Unarchiving
            When a record is created in an org, a Case Number is generated automatically on the Case Object. When an archived record is restored to an org in the Archive app, the record is assigned a new Case Number. Here's how to preserve the original record Case Number by using a new field.
          • Unarchive Oversized EmailMessages
            In the Archive app, the EmailMessage HTML Body field stores the rich-text content of email messages in Salesforce, capturing formatted text, images, and embedded elements so that emails appear as they were originally sent. When an email's HTML body exceeds the maximum 131 KB size limit, Salesforce truncates the viewable content to fit within this limit.
          • Enable Unarchive When Parent Archived
            To unarchive a child record in the Archive app, turn on the Enable Unarchive When Parent Archived feature. If you unarchive a child record before its root record is unarchived, the root-child relationship is broken, and the restored child record is orphaned.
          • Exclude Records with External References When Archiving
            To avoid data recovery issues when unarchiving in the Archive app, skip archiving records that have links to files or systems outside Salesforce.

          Unarchive from Archive Widget

          1. To find the archived root record you want to unarchive, go to the Related tab in the Archive Widget.
          2. Select the record from the dropdown list.
          3. Click the arrow next to the root record and select Unarchive.

          Retry Unarchive

          If an unarchive operation fails in the Archive app, retry the unarchive operation for records that failed during the original attempt. The Retry Unarchive feature reruns the unarchive process with the same or adjusted settings.

          To turn on the Retry Unarchive feature:

          1. Go to the Activities tab.
          2. To identify which records failed to unarchive, download and review the Failed Records Log.
          3. Select Retry Unarchive.

            This feature becomes available when an Unarchive activity fails.

          4. Optionally, to override the default settings temporarily, select a different Manage Related Records setting. You can also keep the same settings as the original attempt.

          Preserve the Original Case Number When Unarchiving

          When a record is created in an org, a Case Number is generated automatically on the Case Object. When an archived record is restored to an org in the Archive app, the record is assigned a new Case Number. Here's how to preserve the original record Case Number by using a new field.

          1. Go to Unarchive under Archive Settings.
          2. Select Preserve Original Case Number.
          3. Open the Case Object associated with the original Case Number that you want to preserve.
          4. Click the Settings icon.
          5. Select Edit Object.
          6. Select Case.
          7. Select Fields & Relationships.
          8. Click New.
          9. Select Text.
          10. Click Next.
          11. Enter these details.
            • In the Field Label and Field Name, enter original_number.
              Note
              Note This format is case-sensitive, so be sure that this value is all lowercase.
            • In the Length field, enter 8, for the default Case Number length.
          12. Click Next.
          13. Save your work.
          14. Return to the Case.
          15. Go to the Archive tab.
          16. Search for the Case ID in the Archive Search widget.
          17. From the dropdown list, select View.
          18. Click Unarchive.
            After the Unarchive process is done, original_number appears in the Details page.

          Unarchive Oversized EmailMessages

          In the Archive app, the EmailMessage HTML Body field stores the rich-text content of email messages in Salesforce, capturing formatted text, images, and embedded elements so that emails appear as they were originally sent. When an email's HTML body exceeds the maximum 131 KB size limit, Salesforce truncates the viewable content to fit within this limit.

          In contrast, Archive stores emails' full HTML Body content without size limitations, even for oversized messages.

          While Archive stores the complete HTML body of all emails without size restrictions, unarchiving an email with an oversized HTML body fails because the Salesforce API restricts the insertion of content that exceeds this configured size limit in the EmailMessage object. Adjusting size settings in Salesforce doesn't resolve this limitation.

          Enable Unarchive When Parent Archived

          To unarchive a child record in the Archive app, turn on the Enable Unarchive When Parent Archived feature. If you unarchive a child record before its root record is unarchived, the root-child relationship is broken, and the restored child record is orphaned.

          Note
          Note This feature is located under Unarchive in the Settings tab.

          Here are several use case scenarios. In these scenarios, Record A is the root record of Record B.

          Use Case #1—Success

          Root Record A is archived.

          Child Record B is archived.

          Root Record A is unarchived and, in the unarchive process, receives a new ID, thus becoming Restored Root Record C.

          Child Record B can be unarchived.

          Archive maintains the relationship of Root Record A to Restored Root Record C. The Enable Unarchive When Parent Archived setting isn't required.

          Use Case #2—Failure

          Root Record A is archived.

          Child Record B is archived.

          Child Record B can't be unarchived. The child record can't be unarchived when the root record is still archived.

          Use Case #3—Success

          Turn on the Enable Unarchive When Parent Archived feature. During the archive process, any root-child relationship between records is broken.

          Root Record A is archived.

          Child Record B is archived.

          Child Record B can be unarchived.

          Use Case #4—Failure

          Root Record A is archived.

          Child Record B is archived.

          Root Record A is unarchived and, in the unarchive process, receives a new ID, thus becoming Restored Root Record C.

          Restored Root Record C is archived or rearchived.

          Child Record B can't be unarchived. The root-child connection was lost when the root record was rearchived.

          Even if Root Record C is unarchived and, in the unarchive process, receives a new ID, thus becoming Restored Root Record D, the issue is still unresolved.

          Turning on the Enable Unarchive When Parent Archived feature doesn't permit the unarchiving of Child Record B.

          Exclude Records with External References When Archiving

          To avoid data recovery issues when unarchiving in the Archive app, skip archiving records that have links to files or systems outside Salesforce.

          If a record contains a reference to an external file, such as a document stored in Google Drive or on an external server, the archive process faces limitations. Archive can store the record, but it can't access or read the content of the external file. Even more critical, unarchiving a record with external references can lead to issues because Salesforce can't restore the context or access the data of the external file.

          To skip archiving these specific records that depend on data managed outside Salesforce, turn on the Exclude Records with External References During Archive setting. When enabled, this feature ensures a smoother and more reliable data recovery process by focusing on records that can be completely and successfully restored within your org.

           
          Loading
          Salesforce Help | Article