function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

$Request or $CurrentPage.parameters

The documentation recommends that we use $CurrentPage.parameters rather than $Request in our Visualforce pages.


Is there any reason for this?

Ranjeet Singh (SFDC Developer)Ranjeet Singh (SFDC Developer)
Yeah right, because $Request global variable mainly used in S-Control to retreive the value based on the key & Salesforce replaced S-control with visualfroce page and we can not create new S-Control in org and many organization conveting the S-control into visualforce page and Onclick javascript event.

$CurrentPage.Parameters.KEY_NAME : We have to use this global variable in visualfroce page to read the value from URL based on KEY_NAME.

 For more information, please search 'Understanding Global Variables' in Help & Training.

Thanks & Regards,
Ranjeet Singh.