• DeeMak
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

I wrote this below apex code using eclipse and when i deploy to server and on validating it says no such column for address,owner,recordtype and created by. I tested with just Email and it worked perfectly. I even tried appending the column names with__c like custom fields but it didn't work.

 

public class Communication {
List<Lead> leads;
public List<Lead> getLeads() {
if(leads == null) leads = [select Address,Owner,RecordType,CreatedBy from lead limit 10];
return leads;
}
}

 

tell me how the standard fields should be represented using their api name.

  • November 30, 2009
  • Like
  • 0