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
Vinny12Vinny12 

Apexpages.currentPage().getParameters().get()

Please help me with this,

 

ApexPages.currentPage().getParameters().get();

What it actually does? whats the purpose of it?

Can somebody give an example for this?


Thanks
Prafull G.Prafull G.

This is PageReference class methods. ApexPages.currentPage() returns a PageReference object and the next method you are using getParameters() returns map of query string parameters that are included on your currentpage.

 

For example: If you are on following page

https://ap1.salesforce.com/00Q2000000L78ru/e?act=edit&retURL=%2F00Q2000000L78ru

 

For the above URL getParameters() method will return map of query string i.e. {act=edit, retURL=%2F00Q2000000L78ru}

 

Thanks,

Prafull

Vinny12Vinny12

Thanks for ur reply.

 

But currently am nt working for any company so am not able to login .

 

Can you please give an alternate way

Prafull G.Prafull G.
You can create free developer edition and give it a try there.

Cheers!
Daniel SiebertDaniel Siebert
That link seems awfully Phishy....