+ Start a Discussion
shivram survaseshivram survase 


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);