Skip to content

LogRetentionRule__mdt

Log Retention Rule

Used to configure rules that set the value of Logc.LogRetentionDatec - each rules consists of 1 or more conditions, stored in LogRetentionRuleCondition__mdt

API Name

LogRetentionRule__mdt

Fields

Condition Logic Type

Required

API Name

ConditionLogicType__c

Type

Picklist

Possible values are

  • AND
  • OR
  • Custom

Custom Condition Logic

API Name

CustomConditionLogic__c

Type

Text


Execution Order

API Name

ExecutionOrder__c

Type

Number


Is Enabled

API Name

IsEnabled__c

Type

Checkbox


Number of Days to Retain Logs

API Name

NumberOfDaysToRetainLogs__c

Type

Number

Records

Sample Rule 1 - Error Logs

API Name

LogRetentionRule.Sample_Rule_1_Error_Logs


Sample Rule 1 - Scenarios with Errors

API Name

LogRetentionRule.Sample_Rule_1_Scenarios_With_Errors


Sample Rule 2 - Additional Error Logs

API Name

LogRetentionRule.Sample_Rule_2_Additional_Error_Logs