Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RecordItem

Represents a record or entity in CRM

Hierarchy

  • RecordItem

Implements

Index

Constructors

constructor

  • new RecordItem(id: string, type: string, displayName: string, fields?: {}): RecordItem
  • Parameters

    • id: string
    • type: string
    • displayName: string
    • Optional fields: {}

    Returns RecordItem

Properties

displayName

displayName: string

fields

fields: {}

Type declaration

id

id: string

type

type: string

Methods

getAccountName

  • Returns IField

getDialedPhone

  • Returns IField

getEmail

  • Returns IField

getFax

  • Returns IField

getField

  • getField(key: string): IField
  • Parameters

    • key: string

    Returns IField

getFirstName

  • Returns IField

getFullName

  • Returns IField

getHomePhone

  • Returns IField

getLastName

  • Returns IField

getMetadata

  • getMetadata(): { DisplayName: string; Id: string; Type: string }
  • Returns { DisplayName: string; Id: string; Type: string }

    • DisplayName: string
    • Id: string
    • Type: string

getMobile

  • Returns IField

getOtherPhone

  • Returns IField

getPhone

  • Returns IField

setAccountName

  • setAccountName(fieldName: string, displayName: string, value: any): void
  • Parameters

    • fieldName: string
    • displayName: string
    • value: any

    Returns void

setDialedPhone

  • setDialedPhone(fieldName: string, displayName: string, value: any): void
  • Parameters

    • fieldName: string
    • displayName: string
    • value: any

    Returns void

setEmail

  • setEmail(fieldName: string, displayName: string, value: any): void
  • Parameters

    • fieldName: string
    • displayName: string
    • value: any

    Returns void

setFax

  • setFax(fieldName: string, displayName: string, value: any): void
  • Parameters

    • fieldName: string
    • displayName: string
    • value: any

    Returns void

setField

  • setField(key: string, fieldName: string, displayName: string, value: any): void
  • Parameters

    • key: string
    • fieldName: string
    • displayName: string
    • value: any

    Returns void

setFirstName

  • setFirstName(fieldName: string, displayName: string, value: any): void
  • Parameters

    • fieldName: string
    • displayName: string
    • value: any

    Returns void

setFullName

  • setFullName(fieldName: string, displayName: string, value: any): void
  • Parameters

    • fieldName: string
    • displayName: string
    • value: any

    Returns void

setHomePhone

  • setHomePhone(fieldName: string, displayName: string, value: any): void
  • Parameters

    • fieldName: string
    • displayName: string
    • value: any

    Returns void

setLastName

  • setLastName(fieldName: string, displayName: string, value: any): void
  • Parameters

    • fieldName: string
    • displayName: string
    • value: any

    Returns void

setMobile

  • setMobile(fieldName: string, displayName: string, value: any): void
  • Parameters

    • fieldName: string
    • displayName: string
    • value: any

    Returns void

setOtherPhone

  • setOtherPhone(fieldName: string, displayName: string, value: any): void
  • Parameters

    • fieldName: string
    • displayName: string
    • value: any

    Returns void

setPhone

  • setPhone(fieldName: string, displayName: string, value: any): void
  • Parameters

    • fieldName: string
    • displayName: string
    • value: any

    Returns void

toJSON

  • Returns IRecordItem

Static fromJSON

Generated using TypeDoc