Workflow step expressions

Updated 2 months ago by Neil

Functions

You can use this function to call up information about the last completed workflow step.

For example, let's find the last completed step name. In the form, add a text field called Last completed step name and then enter the formula as lastCompletedStep().name(). In the live form, the previous worfklow step name will be displayed.

In the same way, you can find out an item’s last completed step approver count, assigned time, approved time, whether the deadline crossed or not, etc.

lastcompletedstep()

These are methods you can use along with the lastcompletedstep() function:

Method

Data type

Description

Examples

.assignmentMode()

Text

The mode of assignment, either:

  • Round Robin
  • Least Loaded
  • Normal

.approverCountRequired()

Number

The total number of approvals required to complete this step

.deadline()

DateTime

The deadline for that step

.assignedAt()

DateTime

The time at which the step was started

.approvedAt()

DateTime

The time at which the step was approved

.Name()

Text

The name of the step

.deadlineBreached()

Boolean

Whether the deadline crossed or not


How did we do?