Archive related records in Core UI
Archive, clear, or delete related records from an archive rule.
始める前に
Role required: admin.
手順
-
Access the archive rule that you want to configure in one of the following ways.
Option Steps Using a data management policy - Navigate to All > System Data Management > Data Management Policies.
- Select the data management policy that contains the archive rule.
- In the Archive Rules related list, select the archive rule that you want to configure.
- In the Archive Related Records related list, select New.
Using the Archive Rules module - Navigate to All > System Archiving > Archive Rules.
- Select the archive rule that you want to configure.
- In the Archive Related Records related list, select New.
-
Select which action to take on related records in the Action field.
Action Description Archive Archive records that reference the archived record. Clear Remove the reference to the archived record. The record no longer references the archived record and doesn't appear as a related record in future archives. Delete Delete records that reference the archived record. -
Select the related records that you want to archive, clear, or delete by selecting a relationship in the Reference field.
The Reference field lists all the relationships that exist to the archived table. There are two types of relationships in the list.
- Reference fields
- The list contains reference fields in other tables that refer to the archived table.
For example, you create an archive rule on the Problem [problem] table. You can include related incident records by selecting the Problem in Incident field reference field on the Incident [incident] table.
- The Archive action archives any incident record that references an archived problem.
- The Clear action updates any incident record with a reference to the archived problem record by clearing the reference. If the reference is a many-to-many relationship, the related record rule deletes the reference instead of clearing the reference.
- The Delete action deletes any incident record that references the archived problem record.
- Document ID fields
- The list contains document ID fields in other tables that point to the archived table. Document ID relationships display an asterisk (*) character at the end of the selection name.
For example, you create an archive rule on the Problem [problem] table. You can include related attachment records by selecting the Table sys ID Attachment(sys_attachment)* reference.
- The Archive action updates the attachment record to change the Document ID to refer to the archived table record.
- The Clear action removes the Document ID reference to the archived record. The record no longer references the archived record and doesn't appear as a related record in future archives.
- The Delete action deletes any attachment record that references the archived primary record.
注:You can't select references from some internal system tables or from peripheral tables. For example:- Sys Audit [sys_audit]
- Audit Deleted Record [sys_audit_delete]
- Audit Relationship Change [sys_audit_relation]
- Attachment [sys_attachment]
- Journal Entry [sys_journal_field]
- オプション:
Apply an archive rule to the related records that you're archiving by selecting a rule in the Reference table rule field.
For example, if you already have an archive rule for the Incident [incident] table, select the existing incident archive rule when archiving records related to incidents records.注:You control the cascade depth by specifying an archive rule in the Reference table rule field. Related records without a specified archive rule aren't cascaded.
- Prior to the Washington DC release, if an archive rule was defined in the system for a related record's table, the system would automatically cascade and process that archive rule and the related records associated with it.
- Beginning in the Washington DC release, even if an archive rule exists for a related record's table, you must declare that rule in the Reference table rule field to achieve that cascading behavior. If you have multiple related records on multiple tables, you can decide which of those records you want to include in the cascade by specifying the reference table rule.
- Select Submit.