# Copy of Archiving Your Salesforce Data

1. Log in to your Vault account.
2. Go to the **Setup** module.
3. Locate the Salesforce Org for which the data has to be archived. You can use the **Search** filter to easily find the required Salesforce Org.

   <figure><img src="/files/LpAdCB5TddBUXqbTtKFa" alt=""><figcaption><p>Search for Salesforce Org</p></figcaption></figure>
4. Navigate to the **Configs** tab.
5. Click on **Add Archive Config**. This will allow you to view all the components available in your Salesforce Org and choose the components for which you want to define the archive policy.

   <figure><img src="/files/LqIsj6GZDzgkm5cJQLl7" alt=""><figcaption><p>Add Archive Config</p></figcaption></figure>
6. Select the components that you need to archive on the next screen.

   <figure><img src="/files/BcHvsMrJtiIdMEpg1uXn" alt=""><figcaption><p>Select components</p></figcaption></figure>
7. Using **Filters,** you can define the criteria for which the records will get fetched. For example, you can define criteria to fetch **AccountBrand** records that are older than *1,000 days* and *field Id* is not empty.<br>

   <figure><img src="/files/mMAS9CxGKf8ragxjWLGf" alt=""><figcaption><p>AccountBrand-Filter</p></figcaption></figure>

Validate your query to see whether the criteria set is correct and view the number of records that will be fetched. You can even set the record count limit for your data being fetched. Click on **Apply** to set the criteria and close the Filter dialog box. To easily identify the objects for which the filter is applied, the filter icon is highlighted.

<figure><img src="/files/K8CrfsYSuaJOsOHsgwLU" alt="" width="563"><figcaption><p>Filter</p></figcaption></figure>

<figure><img src="/files/RPnbzTpQljM6zqEcOaU8" alt=""><figcaption><p>Filters</p></figcaption></figure>

8. The **Hierarchy** option will allow you to view all the corresponding child objects for your selected object. These child objects will also get archived once you archive their parent object. Such a hierarchy schema view can be seen using the **Hierarchy** option.

   <figure><img src="/files/PlBZGWZCps5DDj5LsQUz" alt=""><figcaption><p>Hierarchy</p></figcaption></figure>

   You may notice in the schema view that some of the objects are auto-selected by default and cannot be unchecked. These are the child objects of its parent object, which will be deleted if the parent object is selected for archival per policy. However, for other objects that are related to the selected object in some other way, you may have the option to choose them manually for archival. Visit the Mandatory Child Archival page for more information.

   <figure><img src="/files/evzg9jOFa22g48DwH7ta" alt=""><figcaption><p>Schema</p></figcaption></figure>

   <figure><img src="/files/44lPStxB8j6EdddjF7jq" alt=""><figcaption><p>Child Schema</p></figcaption></figure>
9. Once done, click **Save** to close the hierarchy-schema screen. Similar to **filter** criteria addition, the hierarchy icon gets highlighted corresponding to the object for which hierarchy is selected.<br>

   <figure><img src="/files/bdXlA234PtRExWwVop5n" alt=""><figcaption></figcaption></figure>
10. Click **Next.** On the next screen, do the following:
    * Give the process a **name**.
    * Select the **email notification** checkbox to receive an email notification whenever the objects are getting deleted from your Salesforce Org. If unchecked, data will be automatically deleted without any prior notification.
    * Select the date and time interval for the archive process to run under the **Schedule Archive** section. You can set the policy to run either daily, weekly, monthly, or input any duration manually.
    * You can specify till what time period you want to retain the archived data under the **Archive retention period** section.
    * Specify the **batch size** for components to retrieve records. 10K is the max batch size that you can set per batch. This option is useful in running large jobs that would exceed normal processing limits. As per the Salesforce governor limit, you can deploy or retrieve up to 10,000 files at once or a max size of 40MB. Using Batch Size, you can process records in batches to stay within platform limits. If you have a lot of records, processing records through batches are your best solution.
    * **Enable serial mode for Bulk API:** Serial mode processes batch one at a time, however, it can increase the processing time for a load.

      <figure><img src="/files/Qg1UUmfKJy2GdTgyBxRN" alt=""><figcaption></figcaption></figure>
11. **Disable Automation Rules**
    1. This provision to disable the automation rules is useful in making sure the automation rules created on various fields in Salesforce will not impact the Archival process midway.

       **Step-By-Step Guide:**

       1. Set up the configuration for the automation rules at **“Scheduling”** while creating the “Archive Config”.

          <figure><img src="/files/aYfVK0by8jwALeO4ofHu" alt=""><figcaption></figcaption></figure>
       2. On selecting the required automation configurations, continue to **“Save Config”**.
       3. Once saved, the set job configurations can be observed under the **“Archive Config Details”**.

          <figure><img src="/files/AnW71xTkWCtH8nm1Iax2" alt=""><figcaption></figcaption></figure>
       4. Clicking the information icon under the **"Archive Config Details"** column opens a pop-up displaying the configuration details associated with the respective archive job. This provides a quick view of the selected archive parameters without navigating away from the main screen.

          <figure><img src="/files/nzP4m4YC6DR0rQWyDjlq" alt=""><figcaption></figcaption></figure>
       5. Run a job for the created configuration and observe the configuration details reflected on the job

          <figure><img src="/files/t9nD3eLFoZs0jgEahCK2" alt=""><figcaption></figcaption></figure>
       6. The automation configurations selected during the creation of the ***Archive Config*** will appear on the ***Start Archive*** screen in the same state as they were initially defined.
       7. For archive configurations where the **"Notify before deleting records in Salesforce"** option is not selected, the automation settings will still appear on the **Start Archive** page..
       8. On clicking the **“ARCHIVE NOW”** button, observe the automations to make sure they reflect in the same state of selection during the archive config creation.

          <figure><img src="/files/DkQmcMZdLhNryJlkdlzc" alt=""><figcaption></figcaption></figure>
       9. For "**Archive Configs"** with **"Notify before deleting records in Salesforce"** enabled, the automation rule settings will **not** be displayed on the **Start Archive** screen when the **ARCHIVE NOW** button is clicked.

          <figure><img src="/files/XJDYnCP3rFVeGeAKrvEV" alt=""><figcaption></figcaption></figure>
       10. Once the archive job is completed, observe the automation rules details on the *“Job Info”* section.

           <figure><img src="/files/QdyEcdLmd0WmXllm8GBD" alt=""><figcaption></figcaption></figure>
       11. Click on the information icon under the “Job Info” section to observe the job automation details configured.

           <figure><img src="/files/eYSQqUJEsGpj2j4FsExW" alt=""><figcaption></figcaption></figure>
       12. Once the archive job is completed, any automations that were temporarily disabled during job creation will be restored to their original state as they were before the job was triggered.
12. Click **Save Config**.
13. A summary of all the objects, filters, and criteria selected or applied will get displayed before your archive policy gets configured. Click **Save**.

    <figure><img src="/files/d9nyjPzAypb7nqZTVCv0" alt=""><figcaption><p>Save Config Details</p></figcaption></figure>
14. Now go to the **Archive** tab.
15. Select your [**Salesforce Org**](broken://pages/9pLgfInGvztETx4cXCc2) for which you configured the archive recently.&#x20;
16. Select the **Environment**.
17. Select the archive configured recently under **Configurations** drop-down field.

    <figure><img src="/files/aThEPWueo3W9TU8B42np" alt=""><figcaption><p>Archive Settings</p></figcaption></figure>
18. Click on **Get Details** to fetch all the existing archive configured for your Salesforce Org. If you've initiated the archival process for the first time in Vault, you will not find any details on this page.
19. To run on-demand archive before the scheduled archive set, use **Archive Now** button.
20. On the **Start Archive** screen, the label name gets auto-populated; however, you have the option to edit the label name and enter the label you desire.
21. &#x20;Select your configuration and click **Archive**.

    <figure><img src="/files/4kn6yhn8u1WaUudEzRGr" alt=""><figcaption><p>Start Archive</p></figcaption></figure>
22. You'll be redirected to the **Archive** page to view the status of the ongoing archive process being run.

    <figure><img src="/files/XiRfIO7UWgZhUgSfhffi" alt=""><figcaption><p>View Status</p></figcaption></figure>
23. &#x20;For each archive job, the following information will be displayed:

    <figure><img src="/files/0XsFgzNpvsCCXuCRA1UH" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="226">Parameters</th><th>Description</th></tr></thead><tbody><tr><td>Label<br></td><td>An identification name for each archive performed in Vault<br></td></tr><tr><td>Configuration Name<br></td><td>Archive configuration name<br></td></tr><tr><td>Date/Time<br></td><td>The date and time stamp for the archive process took place<br></td></tr><tr><td>Expiry Date<br></td><td>Till which date the archive job will remain with Vault<br></td></tr><tr><td>Duration<br></td><td>Time-taken to complete the archive operation<br></td></tr><tr><td>Records<br></td><td>Total numbers of records archived<br></td></tr><tr><td>API Calls<br></td><td>API call duration (in seconds)<br></td></tr><tr><td>Query<br></td><td>Filter or query that have been used to fetch the records<br></td></tr><tr><td>Data Backup<br></td><td>Backup type for data components i.e., <em>Full backup</em> or <em>Incremental backup</em><br></td></tr><tr><td>Status<br></td><td>Status of the archive i.e., <em>completed, in progress, or failed</em><br></td></tr><tr><td>Actions<br></td><td><ol><li><strong>Summary Report</strong>: View the summary info for the archive performed. The report will contain the list of both success and failed components for the job triggered as shown below.</li><li><strong>View Log</strong>: View the log information for the archive job triggered.</li><li><strong>Download Archival Report</strong>: Specify the email address to receive the downloadable link to allow mentioned users to download the archive report on their local machine.</li></ol></td></tr></tbody></table>

## Filter & Download Records

This provision is useful in filtering the “backed up” and archived records. The available records can be filtered through various options provisioned on the application.

**Step-By-Step Guide:**

1. Follow the following flow for the backup records download:
2. Go to the backup module of the Vault application
3. Click on the “Label Name” to open the backup details
4. On landing on the backup details section, click on the “Records”

   <figure><img src="/files/8Y8ghWMCK8ZJJ7b83CHl" alt=""><figcaption></figcaption></figure>
5. On opening the backup “Records”, observe the “Downloads” option.
6. The download has three values in the drop-down

   1. Download All Records
   2. Download Records On Screen
   3. Download Filtered Results

   <figure><img src="/files/LBpdMiRitdVJyijgN16o" alt=""><figcaption></figcaption></figure>
7. 6\.    Download All Records: Selecting this option will download all the backed up records
8. 7\.    Download Record On Screen: Selecting this option will download all the records available on that current page

   <figure><img src="/files/eAm4A3GIFRWLFXDjNDdr" alt=""><figcaption></figcaption></figure>
9. Download Filtered Records: Selecting this option will download the records filtered

   <figure><img src="/files/VpkZWioxizEqMH2ndUcK" alt=""><figcaption></figcaption></figure>

   <figure><img src="/files/ux2UCjBZcpcmtbbUvdVm" alt=""><figcaption></figcaption></figure>

## Limitations

* Inconsistent File Download During GDPR Requests: When a GDPR request is initiated within an organization, file downloads may behave inconsistently. This issue will be resolved in the upcoming release.
* File Download Issues with Special Characters in File Names: Files with special characters in their names may not function properly in certain environments, particularly on macOS. This issue will be addressed in the upcoming release.


---

# 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://knowledgebase.autorabit.com/product-guides/vault/vault-features/archive/archiving-your-salesforce-data-1.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.
