Activity Forums Salesforce® Discussions How to read the parameter value from the URL in Apex? Reply To: 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.