Queue - Scoped

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • The Queue API provides methods that allow you to retrieve or join a Connect Support chat queue.

    To execute this class in a scoped application, use the sn_connect namespace identifier. The Connect Scriptable APIs plugin (ID: com.glide.connect.scriptable) must be enabled to access the Queue API.

    Scoped Queue - get(String sysID)

    Retrieves a specified chat queue.

    표 1. Parameters
    Name Type Description
    SysID String Sys_id of a queue from the Chat Queue [chat_queue] table.
    표 2. Returns
    Type Description
    Object Returns a conversation queue object.
    var queue = sn_connect.Queue.get("ab73be7dc09a4300964f336ee6b74361");

    Scoped Queue - join(String question)

    Adds the current user to an existing Connect Support chat queue and posts the specified question.

    Before calling this method, you must call the Scoped Queue - get(String sysID) method to retrieve the chat queue to which to attach the current user.

    표 3. Parameters
    Name Type Description
    Question String Question to add to the chat queue.
    표 4. Returns
    Type Description
    Object Record (GlideRecord object) in the Chat Queue Entry [chat_queue_entry] table.
    var queue = sn_connect.Queue.get("ab73be7dc09a4300964f336ee6b74361");
    queue.join("How do I access my email?");