# Restoring Records with Time Machine

## ![](/files/CBvqj0H8446fKLeXtHLv) Overview

With the Flosum Backup & Archive Salesforce app, you can restore previous versions of records using the Time Machine Lightning Web Component. Time Machine can be added to a record's page to facilitate record restoration. Once Time Machine is added, you can compare and restore previous versions of the active record. Time Machine is also accessible when selecting a backup record from the Backup History.

{% hint style="info" %}
Time Machine adheres to Field Level Security (FLS), ensuring users can only view and restore fields to which they have FLS access.
{% endhint %}

This guide shows how to restore backups using Time Machine. Since Time Machine only supports restoring from backups, for restoring from an archive, you need to use Flosum Backup & Archive. For detailed instructions, see the article on archive restoration.

* [Creating an Archive Restore Job (Preparation)](/backup-and-archive/restore/prepare-restore/creating-an-archive-restore-job-preparation.md)

## Adding Time Machine to a Record Page

Before using Time Machine to restore a record, you need to add the Time Machine Lightning Web Component to the record page for the object you want to restore. To add Time Machine to a record page, see the instructions in the following article.

* [Adding Time Machine Component](/backup-and-archive/backup-and-archive-in-salesforce/time-machine/adding-time-machine-component.md)

{% hint style="info" %}
When restoring records from different object types, you need to add Time Machine to each object's record page.
{% endhint %}

## Restoring Records with Flosum Time Machine

With the Time Machine component, you can choose up to five previous versions of the active record for comparison. After selecting one or more previous versions, you can restore any non-reference field.

{% hint style="info" %}
The values shown in the **Time Machine** tab reflect their value at the time you open the tab. If values change, you must refresh the page to view the updated values.
{% endhint %}

{% stepper %}
{% step %}

### Select Previous Versions

1. Open a Salesforce record.
2. Click the **Time Machine** tab.

{% hint style="info" %}
If the **Time Machine** tab is not available, you must add it to your record page by following the instructions in the article below.

* [Adding Time Machine Component](/backup-and-archive/backup-and-archive-in-salesforce/time-machine/adding-time-machine-component.md)
  {% endhint %}

3. Click **Select Versions**.&#x20;

   <div align="left"><figure><img src="/files/G5Qq2NcLyDUAQRniEYLU" alt="" width="563"><figcaption></figcaption></figure></div>
4. Click a version from the **Available Versions** list.
5. Click the **Right Arrow** to move the version to the **Selected Versions** list.&#x20;

   <div align="left"><figure><img src="/files/HoLSRPZWyQ5cRhdn4Pkx" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="info" %}
You can select multiple versions at once by holding **Ctrl** while clicking.
{% endhint %}

6. Add up to 5 versions from the **Available Versions** list to the **Selected Versions** list.
7. Click **Save**.&#x20;

   <div align="left"><figure><img src="/files/fnZQmhzaQivWMy97yb61" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Select and Restore Fields

1. (Optional) Enable the **Hide identical fields** toggle to only show fields that have changed.&#x20;

   <div align="left"><figure><img src="/files/Fg9yh6GfMyHH2nRNmxk1" alt=""><figcaption></figcaption></figure></div>
2. Compare the **Current Version** to all of the **Selected Versions**.&#x20;

   <div align="left"><figure><img src="/files/EyU49lY2HyYtnCD8XyK8" alt=""><figcaption></figcaption></figure></div>
3. Select the fields to restore.

{% hint style="info" %}
Only non-reference fields are restorable. Fields with a greyed-out checkbox can't be restored.
{% endhint %}

4. Click **Restore**.&#x20;

   <div align="left"><figure><img src="/files/dBd6cPgRYC0is7Ivrtst" alt=""><figcaption></figcaption></figure></div>
5. After the fields have been restored, you will see a **Record restored successfully** message.&#x20;

   <div align="left"><figure><img src="/files/xpjsVwCAzdSxB4rDz6gl" alt=""><figcaption></figcaption></figure></div>

{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flosum.com/backup-and-archive/backup-and-archive-in-salesforce/time-machine/restoring-records-with-flosum-time-machine-in-salesforce.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
