This question already has an answer here:

Is it possible to generate {!Community_Url} dynamically in the apex and then pass it on to VF email template? Does the link created programatically have the encrypted key to take the user to the password set screen and log them to the community?

marked as duplicate by Tushar Sharma, Sebastian Kessel, Pranay Jaiswal, Derek F, glls Apr 4 at 13:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Does the link take the user to the password set page? – Shalini SF Apr 4 at 7:10
  • It will give you login URL then you can make the password change URL. – Tushar Sharma Apr 4 at 7:29
  • How will this link know about the context of the external user? – Shalini SF Apr 4 at 21:16
  • I do not think it is the same question being answered. I need a URL which is unique to a user and not a base URL which is common to everyone. I want the value for this field $Network.NetworkUrlForUserEmails. I am creating a new question. – Shalini SF Apr 4 at 21:31

Browse other questions tagged or ask your own question.