Skip to main content
Reads and writes entries from the email address book. The class is also used when you want to synchronize the address book using DBI.

Constructors

EabEntry()

Initializes a new instance of the EabEntry class.

Methods

delete()

Deletes the current address book entry from the database.
Returns: CRMScript.Global.Void

getValue(String)

Gets the value of the given field in the EabEntry instance.
Returns: CRMScript.Global.String - The value of the field.
Available fields:
  • name
  • email
  • sms
  • folderId
  • dbi_agent_id
  • dbi_key
  • dbi_last_syncronized
  • dbi_last_modified
  • dbi_delete
Example:

load(Integer)

Loads an entry from the address book with the specified ID.
Returns: CRMScript.Global.Bool - True if loading var successful; otherwise, false. Example:

loadFromAgentAndKey(Integer,String)

Used in conjunction with DBI. Load an entry with the specified key from the specified agent.
Returns: CRMScript.Global.Bool - True if loading var successful; otherwise, false.

save()

Saves the current address book entry. If you did not load an existing entry, a new entry will be created; otherwise, it will update the loaded entry.
Returns: CRMScript.Global.Integer - ID of the saved entry.

setValue(String,String)

Sets the value of the given field in the EabEntry instance.
Returns: CRMScript.Global.Void
Available fields:
  • name
  • email
  • sms
  • folderId
  • dbi_agent_id
  • dbi_key
  • dbi_last_syncronized
  • dbi_last_modified
  • dbi_delete
Example: