How to get parameter value from url in apex?

Write the following line in constructor. Value of the param ‘id’ is stored in paramValue.

String paramValue = ApexPages.currentPage().getParameters().get(‘id’);

Published by Sandeep Kumar

He is a Salesforce Certified Application Architect having 11+ years of experience in Salesforce.

Leave a Reply