I want to pass the Quote Id to the controller on click of a custom button & open the vf page called Select Product.
Currently i'm using this code:-
apex/SelectProduct?id={!Quote.Id}
I have kept the content source as URL.
But it is giving me following error:- URL No Longer Exists
1 Answer
Add another backslash before 'apex' - /apex/SelectProduct?id={!Quote.Id}
. Without that, the relative URL will be appended to the base host URL and it will create an invalid one.
For an example if you have https://na13.salesforce.com
and you don't have the first backslash, it will create an URL like this : https://na13.salesforce.comapex/SelectProduct?id={!Quote.Id}
instead of https://na13.salesforce.com/apex/SelectProduct?id={!Quote.Id}
/apex/SelectProduct?id={!Quote.Id}