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

SOQL Profiler on API calls


Is there a way to capture soql queries and inserts in the debug logs.  For example, if Data Loader calls the API to export some Accounts, I'd like to see SELECT Id, Name FROM Account WHERE ID=<something> in the debug log.    

Or if someone sends an insert or update to an Account, I'd like to see the full ist of what's changed.  For example: 

INSERT (ID=<something>, Name="ABC Contracting")
UPDATE( ID=<something>, Name = "XYZ Consulting")

We have a black box application, pulling and sending data from our Financial System to Salesforce, but all I really see is validation rules, triggers and workflows firing.

I guess, I'm spoiled from MS SQL Profiler in the Database world.


Unfortunately there is no such hight level feature like a SQL profiler when it comes to Salesforce however you can do some basic profiling using developer console in salesforce. The below blog post has more information on this