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?: object): RecordItem
  • Parameters

    • id: string
    • type: string
    • displayName: string
    • Optional fields: object

    Returns RecordItem

Properties

displayName

displayName: string

fields

fields: object

Type declaration

id

id: string

type

type: string

Methods

getAccountName

  • getAccountName(): Field
  • Returns Field

getEmail

  • Returns Field

getFax

  • Returns Field

getField

  • getField(key: string): Field
  • Parameters

    • key: string

    Returns Field

getFirstName

  • Returns Field

getFullName

  • Returns Field

getHomePhone

  • Returns Field

getLastName

  • Returns Field

getMetadata

  • getMetadata(): object
  • Returns object

getMobile

  • Returns Field

getOtherPhone

  • Returns Field

getPhone

  • Returns Field

setAccountName

  • setAccountName(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