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
uri-dev1.392024776339377E12uri-dev1.392024776339377E12 

Audit SOQL Queries

Hi,
I have a need to audit all SOQL queries run by applications integrated with my Salesforce. Is there any way of doing it?
Thanks,
Uri
Satish_SFDCSatish_SFDC
Unless you have your own custom logic to log this data, i dont think there is any way to know this.
You may have to contact Salesforce to see if it is stored somewhere.

Regards,
Satish Kumar
uri-dev1.392024776339377E12uri-dev1.392024776339377E12
Hi Satish, What do you mean by "your own custom logic"? I want to log SOQL run by other integrations that are not under my control. Are SOQL can be caught via the debug log? Is there any unofficial API that can provide this data? Thanks, Uri
Satish_SFDCSatish_SFDC
Unfortunately, there is no such API or ways to gather such data. 

Regards,
Satish Kumar