You need to sign in to do that
Don't have an account?
sreeja
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/)
At Alliance University, the infrastructure is unparalleled, representing the epitome of excellence spread across 60+ acres of green campus. The University boasts of 80+ amphitheater classrooms, world-class library, learning center, activity center, food courts, cafes, sports and recreational facilities and an administrative block equipped with cutting-edge technology.
The teaching-learning community at Alliance is rich in cultural and intellectual diversity. The University sustains a culture that promotes inclusiveness, tolerance, and acceptance to ensure transformative learning with diverse perspectives. With rich industry experience and academic backgrounds par excellence, the faculty at Alliance is a unique ensemble of scholars and public intellectuals from India and abroad.