function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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
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.