How do I get SalesForce Table Names from SalesForce data
-
21-12-2019 - |
Question
How to get all table names in salesforce data using query. for example, In postgreSQL If i give SELECT table_name FROM information_schema.tables , it will give all table names from information_schema. Same way how can i get all table names from salesforce data?.
Solution
You can't do this with a query, but you can use the describeGlobal call (via SOAP or REST), or the Schema object in apex to obtain schema information include table & field names, types, etc.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow