Workflow step expressions
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 workflow 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.
These are methods you can use along with the lastcompletedstep() function:
The mode of assignment, either:
The total number of approvals required to complete this step
The deadline for that step
The time at which the step was started
The time at which the step was approved
The name of the step
Whether the deadline crossed or not