Activity Forums Salesforce® Discussions How to read the parameter value from the URL in Apex?

  • Manpreet

    Member
    April 24, 2017 at 1:13 pm

    Hi Suraj,

    If you have ID Parameter in URL then try this Apex Code :
    public Id oppid{get;set;}
    Id id = apexpages.currentpage().getparameters().get('id');

    Moreover , If you want to read parameter in Visualforce the write in visualforce page :
    <apex:inputField value="{!$CurrentPage.parameters.Paramtervalue}"/>

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Steps to Connect Pardot to Salesforce

Steps to Connect Pardot to Salesforce

Blog in

Steps to Integrate Salesforce and Pardot: There are some steps to install Pardot in salesforce 1- Click on this link https://login.salesforce.com/?ec=302&startURL=%2Fpackaging%2FinstallPackage.apexp%3Fp0%3D04t1W000000U7P8(production) https://test.salesforce.com/?ec=302&startURL=%2Fpackaging%2FinstallPackage.apexp%3Fp0%3D04t1W000000U7P8 (sandbox) 2- After…

Popular Salesforce Videos