function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
shivram survaseshivram survase 

"ApexPages.CurrentPage().getparameters().get('id')"

How to get object ID dyanamically using "ApexPages.CurrentPage().getparameters().get('id')".I have ipmlemeted using this but each time 
I need to copy ID in Url of VF's output page to get object record.Please let me know,Where am i going wrong.
Salesforce DeveloperSalesforce Developer
First put parameter in the URL, you will need to add something like below in your controller : 

ApexPages.currentPage().getParameters().put('Id', Obj.Id);