Salesforce URLFOR redirecting to a Visualforce page which is part of a package


Cloudy Development

This is a quick one but we struggled a little bit before finding out how to make it work.

Requirement: Redirect to a Visualforce page which is part of a package from a Javascript button.

URLFOR($Page.NAMESPACE__MYPAGE) doesn’t even compile…

but the following works like a charm !

URLFOR(“/apex/NAMESPACE__MYPAGE”);

yes it’s 2 _ in between

View original post