Text Enhance Action

A Text Enhance action record represents a Text Enhance action that can be added to supported text fields. For more information, see Text Enhance. The following types of text fields support Text Enhance actions:

A Text Enhance action record includes information about the action, such as:

The internal ID for this record is textenhanceaction.

For help working with this record in the UI, see Prompt Studio.

Note:

For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.

For information about scripting with this record in SuiteScript, see the following help topics:

Supported Script Types

The Text Enhance action record is scriptable in both client and server SuiteScript.

Supported Functions

The Text Enhance action record is partially scriptable — it can be created, updated, and deleted using SuiteScript.

Certain fields cannot be updated after a Text Enhance action record is created. You can update the values of these fields in your scripts, but you will receive an error if you try to save the record with the updated values.

Code Sample

The following code sample demonstrates how to create a Text Enhance action record, set field values, and save the Text Enhance action record.

            require(['N/record'], function(record) {
    var action = record.create({
        type: "textenhanceaction"
    });
     
    action.setValue({
        fieldId: "name",
        value: "Summarize"
    });
    action.setValue({
        fieldId: "language",
        value: "en"
    });
    action.setValue({
        fieldId: "scriptid",
        value: "custteaction_summarize"
    });
     
    action.save();
}); 

          

General Notices