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();