+ Start a Discussion
Simon WhightSimon Whight 

Monitor Apex Code

One of our dummy users appears to be creating accounts and I need to find out why. The amount of Apex we have is huge and the original developers are long gone.

The Debug log is no use as the 20 processes are quickly eaten up by API. 

I need something that flags to me "user X has created an account because of Trigger Y".

Can you help me at all?
Best Answer chosen by James Loghry
pconpcon
There is no built in way to do this.  You can use the Developer Console while logged in as one of the dummy users and then use the tools in there to see the logs generated by that user and follow the stack.  You can use a third party tool [1] to watch these logs.  Or you can add additional Apex to log this information into a custom object.  This last method is time consuming and would require you to know a little bit more about where the problems could be initiating from.

[1] http://salesforce.stackexchange.com/questions/275/how-to-export-debug-logs