+ 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.