We are using customer communities, at the moment we send 2 emails out to the new client(user). first one is up-on creation of the community user, salesforce sends out the welcome email with the generate password URL.
The second one we send out is a custom email through a custom button from a visualforce page by a back-office user.
We need to merge these two emails to one and send the email with the custom button click. Need to ignore sending salesforce generated "generate password" URL with the welocme email.
The problem is, how do we generate reset/generate password URL in APEX and copy that link to our custom email?
- is this possible?
- are there any alternatives?
NOTE: we do not want to use setPassword()