You need to sign in to do that
Don't have an account?
mlindsay
Controller to auto match self register users to contacts in SF Community
All,
We have deployed the SF community, but when people use the self register link on the site SF creates a contact record and user record on a default account even if the email address matches a current customer. As you can image managing the default account of contacts is not something I want to deal with.
So I am looking for a way to auto match users to their contacts to their user records if the email addresses match. I understand that this can done with a controller. I don't do that level of SF work yet, so any help would be great.
Thanks,
Michael
We have deployed the SF community, but when people use the self register link on the site SF creates a contact record and user record on a default account even if the email address matches a current customer. As you can image managing the default account of contacts is not something I want to deal with.
So I am looking for a way to auto match users to their contacts to their user records if the email addresses match. I understand that this can done with a controller. I don't do that level of SF work yet, so any help would be great.
Thanks,
Michael
Read through the discussion below,
Enable portal user for existing contacts during sites self-registration
https://developer.salesforce.com/forums/ForumsMain?id=906F000000099gQIAQ
Regards,
Ashish
Sharing will be an issue unless you make the controller without sharing - not recommended. You could create another class that is without sharing to get existing contactId and accountId info.