The ConnectActionResponse API provides a method to create a glide record.

The ConnectActionResponse methods are accessed through a global object (response) that is available only in Connect action scripts.

ConnectActionResponse - newRecord(String table, Object values, String view)

Create a GlideRecord in the specified table with the specified values.

Opens a form in the UI based upon the table, which replaces the Table and Document fields in the Live Group Profile record for the associated conversation.

Table 1. Parameters
Name Type Description
table String Name of the table where the record is to be added.
values Object An object of name value pairs where the names are field names in the table and the values are the field values.
view String The form view to load. This parameter is optional.
Table 2. Returns
Type Description
void

Example

response.newRecord("incident", {
	short_description: conversation.document.short_description || "",
	caller_id: conversation.document.opened_by
});