+ Start a Discussion
Suhas GBSuhas GB 

apexpages.currentpage().getparameters().get('id') vs stdcontroller.getRecord().id . Please provide explanation for this with an example

Banwari kevat1Banwari kevat1
Hi Suhas,
   Generally apexpages.currentpage().getparameters().get('id') is used on every controller for getting id from parameters of page but stdcontroller.getRecord().id is used to get the current record id of In Standard controller or Standard controller.
Suhas GBSuhas GB
Hi Kevat,
Can u explain this with an example, so that it would be easy to understand in what kind of scenarios it would be best to use which one.