Conversation - Scoped
-
- UpdatedAug 1, 2024
- 1 minute read
- Xanadu
- API reference
The Conversation API enables you to create or modify Connect conversations.
To use this class in a scoped application, use the sn_connect
namespace
identifier. The Connect Scriptable APIs plugin (ID: com.glide.connect.scriptable) should be
enabled to access the Conversation API.
Conversation - addSubscriber(String sysID)
Adds a user to a conversation.
Name | Type | Description |
---|---|---|
sysID | String | Sys_ID of the user you want to add to a conversation. |
Type | Description |
---|---|
void |
Example
Conversation - create(String name)
Creates a Connect conversation.
Name | Type | Description |
---|---|---|
name | String | Create a conversation with a specific name. |
type | String | Include a specific conversation type. The type is determined by the type choice
list. The base system includes the following type options:
|
Type | Description |
---|---|
Object | Scriptable Conversation |
Example
Conversation - get(String sysID)
Returns an existing Connect conversation by sys_id.
Name | Type | Description |
---|---|---|
sysID | String | The sys_id of the conversation record. |
Type | Description |
---|---|
Object | Conversation object |
Example
Conversation - removeSubscriber(String sysID)
Removes a user from a conversation.
Name | Type | Description |
---|---|---|
SysID | String | The sys_id of the user you want to remove from a conversation. |
Type | Description |
---|---|
void |
Example
Conversation - sendMessage(String body, String field)
Sends a message to a conversation.
Name | Type | Description |
---|---|---|
Body | String | The main text of the message. |
Field | String | The field you want the message to appear as. Only use this option if adding a message to a record conversation. Choose from work_notes, comments, or system. Using the field system treats the message as a system message. |
Type | Description |
---|---|
void |