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
VijaySivakumarVijaySivakumar 

Query All the Columns

Hi All,

 

    Is it possible to query all the columns of an object in a query without actually mentioning them..

 

    I am looking for something like select * from ObjectName.

 

Thanks

Vijay

Best Answer chosen by Admin (Salesforce Developers) 
VijaySivakumarVijaySivakumar

Hi,

 

I found an indirect way to do that. I am gonna use the SObject Method getDescribe()

 

you can see the code here..

 

http://forums.sforce.com/sforce/board/message?board.id=apex&message.id=11563&query.id=99510#M11563

 

Thanks

Vijay

All Answers

SuperfellSuperfell
No
VijaySivakumarVijaySivakumar

Hi,

 

I found an indirect way to do that. I am gonna use the SObject Method getDescribe()

 

you can see the code here..

 

http://forums.sforce.com/sforce/board/message?board.id=apex&message.id=11563&query.id=99510#M11563

 

Thanks

Vijay

This was selected as the best answer