Get the contact for the current user

Paul Truman asked on November 7, 2023 15:54

I'm using Xperience 13 asp.net core. I need to get the contact record (if one exists) for a new user who registers on my site. How can I do that?

Recent Answers


Elmar Höfinghoff answered on November 8, 2023 12:08

  • assure contacts are generated in general, enable all needed features. See working with contacts
  • add an email field to your register form
  • get contact by email using the provider

CMS.ContactManagement.ContactInfoProvider.GetContactInfo("email")

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.