4

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

2
  • 4
    Try add another backslash before 'apex' - /apex/SelectProduct?id={!Quote.Id} Commented Apr 22, 2015 at 6:39
  • I've posted it as an official answer, please accept it so we don't have open questions floating around Commented Apr 26, 2015 at 0:47

1 Answer 1

1

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}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .