+ Start a Discussion
DEV_CGDEV_CG 

strat method is unable to fetch the all fileds queried in salesforce

 i used below query in start method
select id,firstname,account.name,account.type ,accountd from contact
but i when i debugged the Scope records, am able to see  only id,firstname,accoundid data,
it is saying account.name is invalid filed...

any suggess please
SandhyaSandhya (Salesforce Developers) 
Hi,

Try below code in developer console query editor and see if you can get results
 
select Id,Firstname,Account.Name,account.Type ,AccountId from Contact limit 10

Best Regards,
Sandhya

 
Sitanshu TripathiSitanshu Tripathi
Hi,

I have tested your code - select id,firstname,account.name,account.type ,accountId from contact
and it is working fine. If you till getting issue the tell me the whole query code with debug.
DEV_CGDEV_CG
Hi sitanshu,
Can u provide test code which you have written in batch apex
Sitanshu TripathiSitanshu Tripathi
Hi,
I have just tested your given query but not create apex batch.
You can type here your code so that I will test that and give to you the solution.

Thanks
DEV_CGDEV_CG
Hi Sitanshu, please refer below link..I provided code below
https://developer.salesforce.com/forums/?id=9062I0000005ss8