Workflow - runFlows(GlideRecord record, String operation)

Runs all workflows for a given record in a given table and its descendant tables. Sample usage can be seen in the Script Includes "SNC - Run parent workflows", and "SNC - Run parent workflows (Approval)".

Table 1. Parameters
Name Type Description
record GlideRecord The record to run workflows against.
operation String Database operation. One of insert, update, delete.
Table 2. Returns
Type Description
void
var wkfw = new Workflow();
      wkfw.runFlows('f2400ec10b0a3c1c00ca5bb5c6fae427','update');