sn_pa_designer.data_retention_policy

ServiceNow property description:

The number of days to wait after a sys_pd_context has reached a terminal state (see below) before automatically archiving via scheduled script execution. A value of 0 will result in archival taking place at the next scheduled script execution. The default value is set to 14 days. Since archiving results in sys_pd_context_log records being deleted, this value can be increased for debugging purposes or for customizing a slower archiving schedule. Terminal states related to this policy include: COMPLETE, CANCELLED, and SKIPPED. ERROR state is not automatically archived, but can be done so manually using sys_pd_context UI Actions. Requires playbook.admin role to write new values.

Attributes

  • Sys ID: e156d7e0a3100210385a2780f31e61f8
  • Type: integer
  • Application: Process Automation Designer
  • Default value: 14
AI Logo

AI generated property description:

The ServiceNow property sn_pa_designer.data_retention_policy defines how many days the system waits before archiving a sys_pd_context record after it reaches a terminal state. The default value is 14, meaning archiving occurs two weeks after completion, cancellation, or skipping of a playbook or process context. A value of 0 triggers archival at the next scheduled script execution, while higher values delay archival, which can be useful for extended debugging or audit requirements. Archiving removes related sys_pd_context_log records, so increasing the retention period preserves more history but consumes additional storage. The ERROR state is excluded from automatic archival and must be archived manually if desired. Modifying this property requires the playbook.admin role and is typically done to balance system performance with operational visibility.

Source

Related property: sn_pa_designer.enableDataRetentionFeatures