You need to sign in to do that
Don't have an account?

what is the use of ApexPages.currentPage().getParameters().get('recordId'),
can anybody explain with a example where this scenario is used in a simple manner, i have gone through differnt examples , bt iam unable to understand it >>ApexPages.currentPage().getParameters().get('recordId')
Suppose you want to get the ID of the current record detail page and you want to show it on your VF page once you click on the button then you can use ApexPages.currentPage().getParamaters().get('id'); It will get the id of that objects record. You can also get the name instead of id like
public Opportunity currentRecord{get; set;}
currentRecord=ApexPages.currentPage().getParamaters().get('name') and if you want to see the value on developer console you can use System.debug(currentRecord);
Please let me know if it helps
All Answers
Suppose you want to get the ID of the current record detail page and you want to show it on your VF page once you click on the button then you can use ApexPages.currentPage().getParamaters().get('id'); It will get the id of that objects record. You can also get the name instead of id like
public Opportunity currentRecord{get; set;}
currentRecord=ApexPages.currentPage().getParamaters().get('name') and if you want to see the value on developer console you can use System.debug(currentRecord);
Please let me know if it helps
ApexPages.currentPage().getParameters().get('recordId'),
use to get record id your current page
http://www.sfdcpoint.com/salesforce/get-current-record-id-salesforce/
https://www.cloudforce4u.com/2013/07/get-current-record-id-salesforce.html
paytm mobile recgarge (https://indiakabest.in/paytm-mobile-recharge-kaise-kare/)
Best Comments (https://ebuzzpro.com/comments-for-boys-pic-on-instagram/)
Which of the following correctly describes NIMS (https://techtutr.com/which-of-the-following-correctly-describes-nims/)