How to get URL Parameters in Visualforce Page?

 Syntax:

{!$CurrentPage.parameters.Paramtervalue}


Sample Code:

<apex:page >
    
    {!$CurrentPage.parameters.recordId}<br/>
    {!$CurrentPage.parameters.recordName}
    
</apex:page>


URL Example :

https://salesforcelegend-dev-ed--c.visualforce.com/apex/URLExample?recordId=000123xxxxxxxxxxxx&recordName=Test


OUTPUT :

    000123xxxxxxxxxxxx
    Test


Help Article :


Follow Us

Posted By : Sudeer Kamat Date :

view_module Related

label Labels

Comments 0