Значение поля можно задать несколькими способами:

Context.data.client_email = Context.data.client_email.create('user@company.com');
Context.data.client_email = Context.data.client_email.create('user@company.com', EmailType.Work);
Context.data.client_email = {
  type: EmailType.Work,
  email: 'user@company.com'
};

Обратите внимание, что при работе в сценариях не производится валидация корректности формата email-адреса.

Type parameters

Hierarchy

  • TEmail

Properties

email

email: string

Email-адрес.

type

type: T

Тип адреса EmailType.