System Archiving: Issues with archiving attachment

ojhagargi
Tera Contributor

Hello All,

I am using System Archiving to archive the Catalog Task records.

Steps followed:

1) Created an Archiving Rule , with table as "Catalog Task(sc_task)" and condition to archive all inactive records.

2) Under the Archive Related Records, I used "Archive" option in Archive Map   and selected "Table Sys ID in Attachment(sys_attachement)" as Reference.

3) I save the rule and executed the same.

Results:

I could see all the inactive catalog Task being archived in Archive Catalog Task table.

Issues:

1) I was unable to find the attachment attached to the Catalog Task in th archive table What sould i do to veiw the attachement in the archive catalog task.

find_real_file.png

2) I am not getting the option to select "sys_attachment" table in the archive rule., no rule is available on the sys_attachement table.

Please help

Regards,

Gargi Ojha

7 REPLIES 7

Mwatkins
ServiceNow Employee
ServiceNow Employee

You shouldn't have to worry about the "active" or "parent" field on an Archive Related Records document. I think you are talking about a Parent/Child Archive Rule. That is a different thing. A Child rule is a rule that runs anytime when its Parent runs, regardless of any reference field linkage to between the records being archived. Parent/Child rules are useful when you always want one rule to follow another.



On the other hand, "Archive Related Records" rules create a cascading archive behavior, linked through a reference field to a document that is being archived by an "Archive Rule". To create a "Related Record" rule, navigate to the base rule and click the "New" button in the "Archive Related Records" related list tab.


That's the clarification I was looking for. We'll be running archive in a sandbox and I'll report back our results.


Everything is looking as expected. Thank you Matt.