Try our conversational search powered by Generative AI!

Episerver Contacts with non unique email addresses

Vote:
 

Hi

Does Episerver support contacts with non unique email addresses? As in can we share email address across Epi Contacts? Does it have any repurcussions w.r.t Orders?

W.r.t login, I'm assuming we'd revert to unique username instead of unique email.

Any thoughts?

Regards

Ritu

#214671
Jan 10, 2020 21:49
Vote:
 

Hi Ritu

As I recall the Email field on the Contact class does not have to be unique, meaning you can do as you wrote.

Only the ContactId and the UserId fields are unique fields. But when populating the UserId field, you need to use a unique UserId or UserName. (Hint: use the MapUserKey class to convert from a UserName string to a Contact's UserId).

#214673
Jan 11, 2020 9:02
Vote:
 

A Commerce contact can change their email address and can have multiple accounts with the same email address but the user name can't be changed for an account. Similarly while registering a customer if you are assigning an email address as the username then you can not change this username. 

#214675
Jan 11, 2020 13:09
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.