You need to sign in to do that
Don't have an account?
Rakesh S
Getting no.of fields using SOQL query
Hi All,
For example, i have a requirement to display all fields of the object. Assume that Object has 100 fields.
Can i fill all 100 fields in a single query? how we can display. please give me appropriate solution(Query).
Thank you all.
For example, i have a requirement to display all fields of the object. Assume that Object has 100 fields.
Can i fill all 100 fields in a single query? how we can display. please give me appropriate solution(Query).
Thank you all.
You can try writing a method in your utility class as in the following link :
http://singhgautam02.blogspot.com/2015/01/dynamic-soql-field-names.html (http://singhgautam02.blogspot.com/2015/01/dynamic-soql-field-names.html" target="_blank)
Important :
If you have received the answer which you are looking for, Please mark it as a Solution, this will help others to find the resolution of problem with ease. More, you can make the Developers of the Community smile by appreciating the answer with the "Like" Button. We would love to help you again.
Thank You
Gautam Singh
Blog - http://singhgautam02.blogspot.in/
Me - about.me/singhgautam
All Answers
There's nothing equivalent to SQL's "*". However, here's some input on what you might be able to do:
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008oLMIAY
Thanks,
Phil
You can try writing a method in your utility class as in the following link :
http://singhgautam02.blogspot.com/2015/01/dynamic-soql-field-names.html (http://singhgautam02.blogspot.com/2015/01/dynamic-soql-field-names.html" target="_blank)
Important :
If you have received the answer which you are looking for, Please mark it as a Solution, this will help others to find the resolution of problem with ease. More, you can make the Developers of the Community smile by appreciating the answer with the "Like" Button. We would love to help you again.
Thank You
Gautam Singh
Blog - http://singhgautam02.blogspot.in/
Me - about.me/singhgautam