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
hy.lim1.3897974166558203E12hy.lim1.3897974166558203E12 

How can i convert existing contact to portal user contact (community user)?

Hi, I have communities enabled in my org and every time someone registered at my communitiy it will create a contact in my org as well.

We have actually already imported customer data as a contact from our customer database so when same email address - user register as a community user again it will have duplicate contact.

How can i prevent this? Can i convert the existing contact(if found based on email address) to portal user upon user registration?  so it wont create another contact with same email address again.

Thanks.
Sfdc CloudSfdc Cloud
When user register via registering page that time you need to check that email address Whether this email is associated with any contact in salesforce or not.
If available then don't insert them and make true the "enable partnal portal user" option..
Vinit_KumarVinit_Kumar
You can have an insert Trigger on Contact which would prevent duplication of Contacts based on same email value.