Filter for records in Batch Purger
I'd like to be able to filter our particular records for the batch purger. There are certain records that we don't want to ever delete. Is this a feature that is available today, and if not, is it wise to modify the LogBatchPurger class to just exclude some records from the query?
Hi @erikvlm - you can control that today by setting the value of Log__c.LogRetentionDate__c to null - the batch purger job ignores any records with a null. You could use the LoggerSettings__c object to control this via config, or add your own automation, etc. to further control the value of LogRetentionDate__c. Regardless of how you set/update the field value, as long as it ends up null, it'll be kept indefinitely.
Thanks @jongpie - how is Retention Date controlled through flows though. It seems like I can't control that fields in a flow context, only through apex