You need to sign in to do that
Don't have an account?
tommytx
How to display my found records using Debug.
Getting my list seems to work fine, but can someone give me a pointer in the right direction to display my new found data by scanning thru the list and printing each one after the other using the debug command.
List<Lead> aa = [SELECT Id, lastName, firstName FROM Lead WHERE Ownerid = 'ZZZZYYYYYYYxxxx'];
// From this list, you can access individual elements:
if (!aa.isEmpty()) {
// Execute commands
system.debug('First Name Last Name ========>' + lastName + firstName);
}
for (Lead l : aa) {
system.debug('This is a lead: ' + l.LastName);
}
All Answers
for (Lead l : aa) {
system.debug('This is a lead: ' + l.LastName);
}
Back to the drawing board, I am spending 24x7 in learning mode and building tons of Email2Lead stuff.... I am compiling every bit of data i can find... if you know of any great tutorials on the subject let me know... I am an old php mysql guy so this Apex is kicking my but .... but slowly and surely I am getting the hang of it..