You need to sign in to do that
Don't have an account?

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
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
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
Cheers!