Highlighted
Micro Focus Expert
Micro Focus Expert
88 views

SM TIP: Track when an operator record is deleted

Hi,

 

The following trigger will write a line to the sm.log every time a record is deleted.

 

1. Go to the trigger table and create a new record

 

Trigger Name: Track operators deleted

Table Name: operator

Trigger Type: before delete

 

Script:

 

var rcode="";
system.functions.rtecall("log", rcode,"<HPSupport> Operator: "+ record.name +" has been deleted by user: "+system.functions.operator() +" Time: "+system.functions.tod())
 

2. Save the new trigger.

 

This may apply for every table you want to track. This is an additional option to the "Audit" feature SM already has. 

 

I suggest you to use this for a period of time when the sm.log is monitored.

 

Regards,

If you feel this was helpful please click the KUDOS! thumb below!
Labels (1)
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.