How to Archive a related record whose parent is already archived DescriptionHow to Archive a related record whose parent is already archived Example: User archives Change Request and all related Approvals, but forgot to include related Emails. Now 1000s of Approvals are archived, but related Emails are not and that Emails might still contain references to targets. Release or EnvironmentALLInstructionsArchive rules will not be able to perform this level of relationship criteria checks. This will have to be done from 'sysemail' table because we cannot re-target the approval record. If you are aware of which records need to be archived then you could 'script' a GlideRecord query to run the archive API command directly one by one outside of the main archive process. We suggest to run this in batches, similar to how archiving itself works. This needs to be tested in the subproduction before doing it in production. Example code - you could wrap in while loop as needed: new GlideArchiveRecord().archive(current);