Scoped GlideRecord - setWorkflow(Boolean enable)

Enables or disables the running of business rules, script engines, and audit.

Table 1. Parameters
Name Type Description
enable Boolean If true (default), enables business rules. If false, disables business rules.
Table 2. Returns
Type Description
void
//Enable business rules, scripts engines for x_app_table
var gr = new GlideRecord("x_app_table"); 
gr.setWorkflow(true);

Output: