Skip to main content
A message in a chat session. Carrier object for ChatMessage.

Constructors

NSChatMessage()

Initializes a new instance of the NSChatMessage class.

Methods

GetAuthor()

Returns: CRMScript.Global.String - The author of the message. Example:

GetChatMessageId()

Returns: CRMScript.Global.Integer - The primary key (auto-incremented). Example:

GetChatSessionId()

Returns: CRMScript.Global.Integer - The reference to the associated chat session. Example:

GetMessage()

Returns: CRMScript.Global.String - The message. Example:

GetReadByCustomer()

Returns: CRMScript.Global.Integer - Whether the message has been read by the customer or not. Example:

GetSpecialParam()

Returns: CRMScript.Global.String - Special parameter for the special_type. Example:

GetSpecialType()

Returns: CRMScript.Global.Integer - Indicates if it is a special message, such as a URL redirection. See <xref href=“CRMScript.NetServer.ChatMessageSpecialType” data-throw-if-not-resolved=“false”></xref> Example:

GetType()

Returns: CRMScript.Global.Integer - The type of the message. See <xref href=“CRMScript.NetServer.ChatMessageType” data-throw-if-not-resolved=“false”></xref> Example:

GetWhenPosted()

Returns: CRMScript.Global.DateTime - When the message was posted (UTC timestamp). Example:

SetAuthor(String)

Returns: CRMScript.Global.Void Example:

SetChatMessageId(Integer)

Returns: CRMScript.Global.Void Example:

SetChatSessionId(Integer)

Returns: CRMScript.Global.Void Example:

SetMessage(String)

Returns: CRMScript.Global.Void Example:

SetReadByCustomer(Integer)

Returns: CRMScript.Global.Void Example:

SetSpecialParam(String)

Returns: CRMScript.Global.Void Example:

SetSpecialType(Integer)

Returns: CRMScript.Global.Void Example:

SetType(Integer)

Returns: CRMScript.Global.Void Example:

SetWhenPosted(DateTime)

Returns: CRMScript.Global.Void Example: