Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Available methods associated with the g_chat variable

Log in to subscribe to topics and get notified when content changes.

Available methods associated with the g_chat variable

The g_chat variable is a legacy chat window object that is available in the Client Show Condition and OnClick Action Script of a chat action definition.

Method Summary

The following table defines the available methods associated with this object.

Return Object Details
ArraygetActiveUsers()

Returns the active users.

Returns:

Array - Returns the active users.

StringgetChannelJID()

Returns the channel JID, which is a sys_id for a record chat_channel table.

Returns:

String - Returns the channel JID.

StringgetChatType()

Determines the chat window type.

Returns:

String - Returns one of the following values that specifies the type of user:

  • queue_agent: Help Desk Chat support agent
  • queue_user: Help Desk Chat end user
  • group_chat: The individual is a member of a chat room (multiple users)
  • conversation: The individual is a member in a private chat with another user
StringgetChatQueueAgent()

Returns the sys_id for agent that is administering this thread.

Returns:

String - Returns the sys_id of the chat queue agent.

StringgetChatQueueUser()

Returns the sys_id for end user of the chat queue.

Returns:

String - Returns the sys_id of the chat queue user.

StringgetThreadID()

Returns the thread ID. This returns the same value as g_chat.getChannelJID().getID().

Returns:

String - Returns the thread ID.

Feedback