You need to sign in to do that
Don't have an account?
Deepak Pansari
Any alternate query for (Select * from Lead)
Hi All,
I want to fetch all the field of Lead object without specified column name like
e.g.
Lead l = select name, city from lead where id=xxxxxxxxxx; [ not want ]
I want some thing like
Lead I = select * from lead where id =xxxxxxxxxxxxxxxxxx
Please help me .
Thanks in advance
Deepak Pansari
I want to fetch all the field of Lead object without specified column name like
e.g.
Lead l = select name, city from lead where id=xxxxxxxxxx; [ not want ]
I want some thing like
Lead I = select * from lead where id =xxxxxxxxxxxxxxxxxx
Please help me .
Thanks in advance
Deepak Pansari
Do a .describeSObjects() on the Lead object. This call returns an array of DescribeSObjectResult[]. Loop through that array and access the array of Field[] for each element of the array. Then loop through the inner array and append a field name to your query expression for each field that you find.