Support rule-based, automatic periodic purge of Cases
In release 26D, Data Lifecycle Management supports policy-based purge operations for Help Desk cases. You can define a purge policy with criteria for selecting eligible cases, then run the Data Lifecycle Management job to permanently remove the selected case data and its related child data.
This feature helps control data growth and supports compliance with applicable data-retention and privacy requirements by enabling automated, criteria-based removal of case data.
Steps to enable and configure
- Create a Data Lifecycle Management purge policy for the Case object.
- Define the policy conditions that identify the cases to purge.
- Schedule or run the Data Lifecycle Management Job from Tools > Scheduled Processes.
- In the process details, select the applicable purge policy and submit the job.
- The job identifies cases that meet the policy criteria and permanently deletes the selected case and child data.
Tips and considerations
Policies need to be created through REST as there is no UI page yet.
Key resources
REST example: Configure a policy-based Case purge
Use the Actions REST resource to create a Data Lifecycle Management (DLM) purge action, identify Case as its target object, and attach the policy condition that determines which Cases are eligible. Authentication details are omitted; use credentials appropriate for your environment.
-
Create the purge action.
POST https://<FUSION_POD_HOST>/crmRestApi/resources/latest/actions Content-Type: application/json
{ "DeletedFlag": "N", "Name": "<PURGE_POLICY_NAME>", "Description": "<PURGE_POLICY_DESCRIPTION>", "ParentEntityName": "Case", "StripeCd": "<SERVICE_STRIPE_CODE>", "ObjectEntityName": "<DLM_OBJECT_ENTITY_NAME>", "ObjectEntityType": "<DLM_OBJECT_ENTITY_TYPE>", "ObjectEntitySubtype": "<DLM_OBJECT_ENTITY_SUBTYPE>", "VisibilityCd": "<VISIBILITY_CODE>", "OperationCd": "<OPERATION_CODE>", "LeadTime": <RETENTION_INTERVAL>, "LeadTimeUnit": "<RETENTION_INTERVAL_UNIT>" }
Save the action identifier returned by the request as
<ACTION_ID>
.
-
Associate the action with the Case object.
POST https://<FUSION_POD_HOST>/crmRestApi/resources/latest/actions/<ACTION_ID>/child/actionAttribute Content-Type: application/json
{ "AttributeName": "ObjectName", "AttributeValue": "Case" }
-
Add the policy condition.
AttributeValue
is a JSON string that defines the condition expression.
POST https://<FUSION_POD_HOST>/crmRestApi/resources/latest/actions/<ACTION_ID>/child/actionAttribute Content-Type: application/json
{ "AttributeName": "PolicyCondition", "AttributeValue": "{\"type\":\"operation\",\"id\":3,\"operands\":[{\"type\":\"condition\",\"id\":1,\"operands\":null,\"attribute\":\"<CASE_ATTRIBUTE_NAME>\",\"operator\":\"Eq\",\"value\":\"<CASE_ATTRIBUTE_VALUE>\"},{\"type\":\"condition\",\"id\":2,\"operands\":null,\"attribute\":\"StatusCd\",\"operator\":\"Eq\",\"value\":\"<CASE_STATUS_CODE>\"}],\"attribute\":null,\"operator\":null,\"value\":\"and\"}", "UsageCd": "<USAGE_CODE>", "AttributeValueContextCd": "<ATTRIBUTE_VALUE_CONTEXT_CODE>" }
Replace the placeholders with values appropriate to the purge policy and retention requirements.