Create an archive rule in Data Management Console

  • Versão de lançamento: Australia
  • Atualizado 12 de mar. de 2026
  • 6 min. de leitura
  • Define a rule for archiving records.

    Antes de Iniciar

    Role required: admin

    Por Que e Quando Desempenhar Esta Tarefa

    Because you can define multiple archive rules for a table, verify any existing archive rules to avoid potential conflicts. For example, if there's a rule for archiving records older than six months, creating another rule to archive records older than three months could cause a conflict. In such cases, either rule could potentially run, each archiving records under different conditions.

    Procedimento

    1. Access the create rule wizard in the Data Management Console in one of the following ways.
      OptionSteps
      Overview tab
      1. Navigate to All > System Data Management > Data Management Console > .
      2. On the Overview tab, select the table with records that you want to archive.
      3. Select Create rule.
      Rules tab
      1. Navigate to All > System Data Management > Data Management Console > .
      2. On the Tables tab, select the table with records that you want to archive.
      3. On the table details page, select the Rules tab.
      4. Select Create rule.
    2. Define the archive rule.
      1. On the Define your rule page, select Archive as the rule type.
      2. Enter a name and description for the rule.
        The name is used as the display value for references to this rule.
      3. Select Save and continue.

    Define archive rule conditions

    Define one or more conditions that identify the records to be archived.

    Antes de Iniciar

    Role required: admin

    Por Que e Quando Desempenhar Esta Tarefa

    Use the condition builder to specify filter conditions that define the records to be archived. For example, you might archive inactive records older than a certain date.

    Make sure that the correct records are selected by testing the conditions in a list view before you activate the archive rule. For example,
    • To archive records closed more than two years ago from today, use the relative operator in a condition like [Closed] [relative] [before] [2] [Years] [ago].
    • To archive records for the current year and the prior year, and not two years ago from today's date, use a condition like [Closed] [on] [Last 2 years].

    Procedimento

    1. On the Define conditions page, limit the number of records by adding one or more conditions that records must meet.
      1. Select a field, operator, and field value.
        For example, [Category] [is] [Software].
      2. Opcional: Use the OR and AND operators to add conditions.
      3. Opcional: Select Add condition set Criteria to add another set of conditions.
    2. Estimate the number of records to archive by selecting Calculate archive estimate.
      The estimate only includes primary records and excludes any related records added to the archive rule. The estimate helps you determine if the archive rule affects the number of records you expect it to. If the estimate is too high or low, change the archive rule conditions accordingly.
    3. Automatically send restored records back to the archive after a set time period.
      1. Select Auto-rearchive.
      2. Enter the time interval in years, days, and hours before the restored record is automatically archived.
    4. Select Save and continue.

    Define destroy rule conditions

    Delete archived records after a specified amount of time by configuring optional destroy rule conditions.

    Antes de Iniciar

    Role required: admin

    Por Que e Quando Desempenhar Esta Tarefa

    Optionally, use the condition builder to specify filter conditions that define the archive records to be destroyed. For example, you might delete archive records older than five years.

    Skip this page and advance to the next one if you don't want to configure a destroy rule now.

    Procedimento

    1. On the Destroy archived records page, select Destroy archived records.
    2. Specify the amount of time that records stay in the archive table before the system deletes them by entering a value for the archive duration in years, days, and hours.
      The default archive duration is one year.
      Importante:
      Archive records are destroyed immediately if all Archive Duration fields are empty or set to 0.
    3. Opcional: Automatically destroy related records associated with the archived records by selecting Destroy related records.
      Nota:
      Associated records, which include records in the Journal Entry [sys_journal_field], Attachment [sys_attachment], and Sys Audit [sys_audit] tables are deleted automatically, even if you decide to preserve related records.
    4. Opcional: Estimate the number of archived records marked for deletion by selecting Recalculate Destroy Estimate.
    5. Opcional: Activate the destroy rule by selecting Activate archive destroy rule.
    6. Select Save and continue.

    Resultado

    After the archive destroy rule is activated, records that have been archived longer than the archive duration value are destroyed when the scheduled job runs. You can verify the progress by checking the archive destroy log.

    View a summary of your archive rule and activate it

    View a summary of your archive rule and decide whether to activate it.

    Antes de Iniciar

    You must activate the archive rule and its corresponding data management policy for the archive rule to run.

    Role required: admin

    Procedimento

    1. On the Rule summary page, review the archive rule conditions and settings.
    2. Opcional: Activate the rule by selecting Activate the rule upon creation.

    Resultado

    Records that meet the archive rule criteria are archived during the next archive run.