Workflow - hasWorkflow(GlideRecord record)

Determines if a specified record has any workflow contexts associated to it.

This includes running and completed workflow contexts.

Table 1. Parameters
Name Type Description
record GlideRecord GlideRecord under scrutiny. This GlideRecord can be from any table.
Table 2. Returns
Type Description
Boolean True, if record has associated workflow; otherwise, returns False.

var wkfw = new Workflow();
      gs.print(wkfw.hasWorkflow('f2400ec10b0a3c1c00ca5bb5c6fae427'));

false