0

How can I view all the available tables in my Salesforce instance using SOQL? Is it possible to view additional parameters, such as whether the table is queryable, or whether it is customizable?

Eugene
  • 1,539
  • 12
  • 20
Sidra Asghar
  • 49
  • 3
  • 11
  • Duplicate of https://stackoverflow.com/questions/60066774/querying-salesforce-object-column-names-w-soql?noredirect=1&lq=1 – Eugene Jun 21 '23 at 01:22

1 Answers1

3

EntityDefinition is a decent start (experiment with the WHERE clause, there are way more tables even in vanilla SF than you think)

SELECT KeyPrefix, QualifiedApiName, Label, IsQueryable, IsDeprecatedAndHidden, IsCustomSetting
FROM EntityDefinition
WHERE IsCustomizable = true AND IsCustomSetting = false
eyescream
  • 18,088
  • 2
  • 34
  • 46