You need to sign in to do that
Don't have an account?
Syed Subhan 9
Enable portal user for existing contacts during sites self-registration
Hi,
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.
During the sites self-registration process, I have only come across the ability to create a portal user that creates both a contact and a user synchronously. I would like to be able to create a portal user using an existing contact. I tried setting the contact id on the user object before I called createPortalUser, but it still created a new contact. We are trying to eliminate the possibility of duplicate contacts.
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.
Can u post the code in which you were able to enable new users under existing contact. It will help me alot...
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.
During the sites self-registration process, I have only come across the ability to create a portal user that creates both a contact and a user synchronously. I would like to be able to create a portal user using an existing contact. I tried setting the contact id on the user object before I called createPortalUser, but it still created a new contact. We are trying to eliminate the possibility of duplicate contacts.
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.
Can u post the code in which you were able to enable new users under existing contact. It will help me alot...
May I suggest you please refer the below link to reference.
- https://developer.salesforce.com/forums/?id=906F000000099gQIAQ
- https://success.salesforce.com/answers?id=90630000000gxFkAAI
hope it helps.Please mark it as best answer if the information is informative.
Thanks
Rahul Kumar
I am looking for the complete code and part of the logic that can be used same in the default self registration controller.
Many thanks,
Syed
Source: https://mobilunity.com/blog/cost-to-hire-machine-learning-developer/