You need to sign in to do that
Don't have an account?
jaw999
Variable does not exist?
public class MyAccountTeamContacts { public MyAccountTeamContacts(ApexPages.StandardController controller) { } User U = CurrentUser(); list <AccountTeamMember> ATMS (){ return [select AccountId from AccountTeamMember where Userid = 'u.id']; } public List<Contact> getGSC () { return [select name, title, email, Client_Function__c, phone from contact where accountid IN: ATMS ]; } } // end class MyAccountTeamContacts
trying to gather a list of Contacts at accounts the running user is on the Account Team for.
Am getting
Save error: Variable does not exist: ATMS
though i thought i just built ATMS. Can someone assist? thanks.
How about
All Answers
May I ask why would run 2 queries for what you can do in a single query ? (Or does apex get optimised to run that as a single query ?)
Just using the methods I know - not a lot of technique yet!
any suggestions?
How about
public class MyAccountTeamContacts {
pulblic MyCurrentUser {
etc.
error: Save error: Invalid type: pulblic
so i went with this and it worked: