I'm working on an auditing solution and could use some advice. We've got Record Type Events set up and they're working great for tracking basic stuff - like who updated a record and when. The Event History table captures all that perfectly.
But now we need to go deeper and track what actually changed in each field. Like if someone updates a customer's email from "old@email.com" to "new@email.com", we want to capture both the old and new values, not just that the record was updated.
old@email.com
new@email.com
We really don't want to create separate audit tables for each record type because we have quite a few and it would need maintenance.
I'm wondering if anyone has figured out how to use Record Type Events to capture the before and after values when fields change? Do the events give you access to both the old and new record data? And if so, what's the best way to compare the fields and store just the ones that actually changed?
Has anyone built something like this before? I feel like this should be doable with events since they're already tracking the changes, but I'm not sure about the implementation details.
Any tips or examples would be awesome!
Thanks!
Discussion posts and replies are publicly visible
yuktak0598 said:We really don't want to create separate audit tables for each record type because we have quite a few and it would need maintenance.
Are you using single eventType record for all record to track event?
I want to Audit data, based on fieldsOld data, new data without creating a dedicated audit table for every recordType present in my systemI wanted to know if this is possible using events....