
4 respuestas
Let's take an example of account. If i want to take id of account then you can do this in following way public with sharing class AcctControllerExtn {
private final Account acct;
public AcctControllerExtn (ApexPages.StandardController stdController) {
this.acct = (Account)stdController.getRecord();
Id CustNo = acct.Id;
}
Let me if it does not work for you.