Skip to main content
A class to access extra tables and create, edit and delete entries.

Constructors

ExtraTable()

Initializes a new instance of the ExtraTable class.

Methods

delete()

Deletes the loaded object.
Returns: CRMScript.Global.Void

delete(Bool)

Deletes the loaded object.
Returns: CRMScript.Global.Void

getValue(String)

Returns the value of the given field for the currently loaded entry.
Returns: CRMScript.Global.String - The value of the given field for the currently loaded entry. Example:

getValues()

Returns all the fields and values of the extraTable row as a Map.
Returns: CRMScript.Native.Map - All the fields and values of the extraTable row.

load(Integer)

Loads the extra table entry with the given ID.
Returns: CRMScript.Global.Bool - True if the entry was found and loaded; otherwise, false. Example:

loadFromAgentAndKey(Integer,String)

Used for integrating data from external systems.
Returns: CRMScript.Global.Bool - True if the entry was found and loaded; otherwise, false.

save()

Creates a new or updates an existing extra-table entry. If ID is set, the table will be updated. Otherwise, a new extra-table entry will be created.
Returns: CRMScript.Global.Integer - The ID of the newly saved object.
Use save(Bool) to signal that the entry should be reloaded after the save.

save(Bool)

Creates a new or updates an existing extra-table entry. If ID is set, the table will be updated. Otherwise, a new extra-table entry will be created.
Returns: CRMScript.Global.Integer - The ID of the newly saved object.

save(Bool,Bool)

Creates a new or updates an existing extra-table entry. If ID is set, the table will be updated. Otherwise, a new extra-table entry will be created.
Returns: CRMScript.Global.Integer - The ID of the newly saved object.

setValue(String,String)

Sets the value of a given field if it exists.
Returns: CRMScript.Global.Void Example: