You need to sign in to do that
Don't have an account?
What is equivalent to ' SELECT * FROM ACCOUNT' is SOQL?
How can I know the number of fields in an object and how can I append entire fields at once? Please guide.
You need to sign in to do that
Don't have an account?
For all the field of any object follow the steps :
1. Open Developer Console.
2. Press ctrl + o .
3. Go to object section and select desire object like "Account" click on "Open".
4. All the field of selected object is shown in table.
5. Select fields which you want and click on query button then the selected field shown in query editor.
Thanks.
All Answers
For all the field of any object follow the steps :
1. Open Developer Console.
2. Press ctrl + o .
3. Go to object section and select desire object like "Account" click on "Open".
4. All the field of selected object is shown in table.
5. Select fields which you want and click on query button then the selected field shown in query editor.
Thanks.
If you want to use dynamic field in apex code then use below code :
Thanks.
1) http://amitsalesforce.blogspot.com/2016/03/dynamic-query-select-all-field-in-soql.html
Sample code for you
Let us know if this will help you
Also, be careful as we need to limit this by 200 otherwise you wont see results or will get an error. :)
Cheers!