Work with Message Context

Use the MessageContext class to work with messages.

MessageContext Class 

Contains information about messages.

MessageContext Methods 

MessageContext has the following methods.

getTs() 

Gets the timestamp of the message.

Signature

1public String getTs()

Return Value

Type: String

getUserId() 

Gets the ID of the user who initiated the shortcut.

Signature

1public String getUserId()

Return Value

Type: String

getText() 

The text of the message.

Signature

1public string getText()

Return Value

Type: String

Beta Feature

This feature is not generally available. It is not part of your purchased Services. This feature is subject to change, may be discontinued with no notice at any time in SFDC’s sole discretion, and SFDC may never make this feature generally available. Make your purchase decisions only on the basis of generally available products and features. This feature is made available on an AS IS basis and use of this feature is at your sole risk.