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

Salesforce entity tables

How i can able to query the salesforce core entity tables such as validation rules ,Escalation rules, Field Table of an object etc.

Rowallim TechnologyRowallim Technology
Hii Archestain
Validation Rules are metadata, so are not query-able using Apex / SOQL.  You canuse the Metadata API to query for the ValidationRule element (
The Metadata cannot be accessed from within your Salesforce Full Site nor with any Apex/SOQL. To retreive the Metadata, you'd use the Metadata API.

Now, external IDEs like the IDE[1] uses the Metadata API to fetch all information from your Orgsuch as the Custom Object Fields, Validation Rules, Workflow Rules etc.

So in essence you might wanna use IDE to fetch all the Validation Rules of may be one Object or even all of them. You can then do a Search All Files to catch hold of the culprit!

[1]: IDE (

Hope this will help You.
If you think your question is answered mark it as best answer.