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
vikramkkvikramkk 

How can I send Caseid from one page to page

I have a page which has case standard controller and extension class. I need to send the caseid from this page to a second page which has a different controller. How can I send that in an url. I have a custom button on first page and by clicking that second page should be opened with case id being passed as part of url. Please help on this.

 

Many thanx

Best Answer chosen by Admin (Salesforce Developers) 
Starz26Starz26

when construction the URL on the first page add something like:

 

'?caseid={!case.id}'

 

then in the second page use getparamaters().get('caseid') and assigne it to a variable to use in the controller

All Answers

Starz26Starz26

when construction the URL on the first page add something like:

 

'?caseid={!case.id}'

 

then in the second page use getparamaters().get('caseid') and assigne it to a variable to use in the controller

This was selected as the best answer
vikramkkvikramkk

Thanks a lot. It worked.