Class EmailField

  • The EmailField is deprecated and users should use the People API advanced service instead.

  • EmailField represents an email field within a Contact.

  • EmailField provides methods to get and set the email address and its label, and to check or set if it is the primary email field.

  • Some methods for EmailField, such as deleteEmailField(), getDisplayName(), and setDisplayName(), are also deprecated.

EmailField

Deprecated. Instead, use the People API advanced service

An email field in a Contact.

Methods

MethodReturn typeBrief description
getAddress()StringGet the address for this field.
getLabel()ObjectGets the label for this field.
isPrimary()BooleanGets whether this is the primary field value.
setAddress(address)EmailFieldSets the address of this field.
setAsPrimary()EmailFieldSets this field to primary.
setLabel(field)EmailFieldSets the label of this field.
setLabel(label)EmailFieldSets the label of this field.