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
seven23seven23 

Link to portal record with redirect login

Partner portal users receive an email after submitting a record with a link to the record. How do I construct the URL to redirect the user to login (and then back to the record) if they're not already logged in when they open the link? This is in an HTML email template.

This works if they're already logged in -
https://<company>.secure.force.com/<portalname>/<recordID>

Thanks,
Erin
Ashish_SFDCAshish_SFDC
Hi Erin, 


See the below links, might help 

http://salesforce.stackexchange.com/questions/11864/redirect-customer-portal-login-page-to-vf-page

https://success.salesforce.com/ideaView?id=08730000000YnBcAAK

https://developer.salesforce.com/forums?id=906F000000097pbIAA


Regards,
Ashish