Workflow - getEstimatedDeliveryTime(String workflowId)

Gets the estimated time for a workflow to complete.

Table 1. Parameters
Name Type Description
workflowId String Sys_id of the workflow (table wf_workflow) to get the estimated run time.
Table 2. Returns
Type Description
String Display value from a GlideDuration (e.g., 3 days), or blank if unknown.

var wkfw = new Workflow();
      gs.print(wkfw.getEstimatedDeliveryTime('b99a866a4a3623120074c033e005418f'));

2 Days