Interface IContactExternalDataUpdateService
- Namespace
- CMS.ContactManagement
- Assembly
- CMS.ContactManagement.dll
Provides utility methods for retrieval and updating of a contact, mainly used when processing form data.
public interface IContactExternalDataUpdateService
- Extension Methods
Methods
GetByEmail(string)
Gets contact with specified email.
ContactInfo GetByEmail(string email)
Parameters
emailstringEmail to be searched for.
Returns
- ContactInfo
ContactInfo with provided email or
nullif no contact with given email is found. If more contacts with such email exist, the most recent one is returned.
Update(BaseInfo, bool, ContactInfo)
Updates contact information from record submitted through BizForm module - this requires form fields to be mapped to contact.
void Update(BaseInfo source, bool allowOverwrite, ContactInfo contact)
Parameters
sourceBaseInfoData class object with source data and mapping definition.
allowOverwriteboolIf TRUE existing contact data can be overwritten otherwise only empty properties can be filled.
contactContactInfoOptional. If null then current contact will be updated.