Activity › Forums › Salesforce® Discussions › How do you refer to current page id in Salesforce Apex? Tagged: Apex Page, Page Id, Parameter, Salesforce Apex Controller, Salesforce Visualforce Page, Standard Controller Salesforce® Discussions How do you refer to current page id in Salesforce Apex? Posted by Aman on September 22, 2018 at 11:25 AM How do you refer to current page id in Salesforce Apex? Parul replied 7 years, 4 months ago 3 Members · 0 Replies Apex PagePage IdParameterSalesforce Apex ControllerSalesforce Visualforce PageStandard Controller 0 Replies shariq Member September 22, 2018 at 11:25 AM If you want to retrieve id in a visauflrorc page then you can retriev it using standard cotnroller. for ex: public myControllerExtension(ApexPages.StandardController stdController) { this.acct = (Account)stdController.getRecord(); Parul Member September 22, 2018 at 11:56 AM Adding some point: you can also use this apexpages.currentpage().getparameters().get(‘id’) for visualforce page’s id. Thanks Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me