This topic is locked
[SOLVED]

 Inserting Audit records

5/20/2020 4:41:57 PM
PHPRunner General questions
K
keithh0427 author

Hello all,
I have several tables with email addresses.
In table 1, I have records with unique email addresses.
In tables 2 and 3, there can be multiple records with the same email address.
If I remove and email address in table 1, I want to remove the same email address (if it exists) in the remaining tables 2 and 3. I'm doing that now through the After record updated event for Table 1.
But, how can I insert the information from Tables 2 and 3 if those have email addresses that are moved? The audit system responds to the Add/Edit pages, but not to any external effort of adding or editing information.
Is there a way to implement a call to the audit system to add a record from an external source? Has anyone ever done this?

Sergey Kornilov admin 5/20/2020

Audit system is designed to log end-user actions. If you need to log programmatic changes you will need to do t manually in your events. I.e. after removing email addresses in tables 2 and 3 you can add a record or records to the audit table noting those changes.