As the user goes into an account, there is a custom button that they can click that will redirect them to my Visualforce page. How can I capture that account id in my controller?
Thanks
public myControllerCBR(){
breachRecord = new List<wrapperClass>();
AccountTeamMember uId = [SELECT UserId FROM AccountTeamMember WHERE AccountId =:ApexPages.CurrentPage().GetParameters().Get('id') and TeamMemberRole = 'Sales Engineer' limit 1];
List<User> uName = [SELECT Name, Manager__c, MANAGERID, Email, MOBILEPHONE FROM User WHERE Id =:uId.UserId limit 1];
for(User rept : uName){
breachRecord.add(new wrapperClass(rept));
}
}
See button setup: http://www.evernote.com/shard/s197/sh/b7efd476-905f-4660-b281-2b71e6755318/1f05fbd47a9d9ebf227649e2e70c4c10