 | CustomerRepositoryTCustomer, TAddress, TPhone, TFax, TEmail, TWebsite, TAffiliationGetByPrimaryEmail(String) Method |
Retrieves a single customer by their unique primary email address.
Namespace: Ignition.CrmAssembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.28229
Syntaxpublic TCustomer GetByPrimaryEmail(
string emailAddress
)
Public Function GetByPrimaryEmail (
emailAddress As String
) As TCustomer
public:
virtual TCustomer GetByPrimaryEmail(
String^ emailAddress
) sealed
abstract GetByPrimaryEmail :
emailAddress : string -> 'TCustomer
override GetByPrimaryEmail :
emailAddress : string -> 'TCustomer Parameters
- emailAddress String
- The email address used for lookup. Must be unique.
Return Value
TCustomerThe requested customer
Exceptions| Exception | Condition |
|---|
| IgnitionEntityNotFoundException | No customer was found with the requested primary email address |
| InvalidOperationException | Multiple customers were found with the requested primary email address. |
See Also