 | CustomerRepositoryTCustomer, TAddress, TPhone, TFax, TEmail, TWebsite, TAffiliationGetByPrimaryEmailT(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 T GetByPrimaryEmail<T>(
string emailAddress
)
where T : new()
Public Function GetByPrimaryEmail(Of T As New) (
emailAddress As String
) As T
public:
generic<typename T>
where T : gcnew()
virtual T GetByPrimaryEmail(
String^ emailAddress
) sealed
abstract GetByPrimaryEmail :
emailAddress : string -> 'T when 'T : new()
override GetByPrimaryEmail :
emailAddress : string -> 'T when 'T : new()Parameters
- emailAddress String
- The email address used for lookup. Must be unique.
Type Parameters
- T
Return Value
TThe 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