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
Nickname7Nickname7 

Forward user to Visualforce page on Customer Portal

Hi,

 

I would like to setup a link in emails to customers so that they can directly login to Customer Portal and redirected to a custom Visualforce page. For example my page URL is as follows:

 

/apex/TestPage?id=12345&name=abcde

 

When the email is sent out, the email should point the user to the customer portal login page first and once the authentication is successful, send the user to the TestPage. I'm thinking the URL should be something like:

 

https://na1.salesforce.com/secur/login_portal.jsp?orgId=XXXX&portalId=YYYY&StartURL=/apex/TestPage?id=12345&name=abcde

 

Is it possible to do this? 

 

Thanks!

Best Answer chosen by Admin (Salesforce Developers)