> This page is for Docs.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://zuora.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://zuora.ferndocs.com/_mcp/server.

# WorkflowInstance

> This reference lists the fields of the WorkflowInstance helper object.

This reference lists the fields of the WorkflowInstance helper object.

The `WorkflowInstance` object contains the following fields:

<table>
  <tr>
    <th>
      Field Name
    </th>

    <th>
      Description
    </th>

    <th>
      Example
    </th>
  </tr>

  <tr>
    <td>
      id
    </td>

    <td>
      ID of the workflow run
    </td>

    `{{ WorkflowInstance.id }}`
  </tr>

  <tr>
    <td>
      name
    </td>

    <td>
      Name of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      status
    </td>

    <td>
      Status of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      run_time
    </td>

    <td>
      Total run time of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      started_at
    </td>

    <td>
      The starting time of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      finished_at
    </td>

    <td>
      The finish time of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      created_at
    </td>

    <td>
      The creation time of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      updated_at
    </td>

    <td>
      The last updated time of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      TotalTaskCount
    </td>

    <td>
      The total task count of the workflow run
    </td>

    `{{ WorkflowInstance.TotalTasksCount }}`
  </tr>

  <tr>
    <td>
      QueuedTaskCount
    </td>

    <td>
      The queued task count of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      ProcessingTaskCount
    </td>

    <td>
      The processing task count of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      PendingTaskCount
    </td>

    <td>
      The pending task count of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      StoppedTaskCount
    </td>

    <td>
      The stopped task count of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      SuccessTaskCount
    </td>

    <td>
      The successful task count of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      ErrorTaskCount
    </td>

    <td>
      The errored task count of the workflow run
    </td>
  </tr>

  <tr>
    <td>
      LastExecution
    </td>

    <td>
      The last execution workflow run object
    </td>

    <td>
      `{{ WorkflowInstance.LastExecution.PendingTaskCount }}`

      `{{ WorkflowInstance.LastExecution.started_at }}`
    </td>
  </tr>

  <tr>
    <td>
      PendingTasks
    </td>

    <td>
      The pending tasks (limit 15)
    </td>

    `{{ WorkflowInstance.PendingTasks.size }}`

    `{{ WorkflowInstance.PendingTasks | map: "error" }}`

    `{% for task in WorkflowInstance.PendingTasks %}{{ task.status }}{% endfor %}`
  </tr>

  <tr>
    <td>
      ErrorTasks
    </td>

    <td>
      The errored tasks (limit 15)
    </td>
  </tr>

  <tr>
    <td>
      SuccessTasks
    </td>

    <td>
      The successful tasks (limit 15)
    </td>
  </tr>

  <tr>
    <td>
      ErrorMessages
    </td>

    <td>
      Messages for errored tasks in array (limit 15)
    </td>

    `{% for message in WorkflowInstance.PendingMessages %}{{ message }}{% endfor %}`
  </tr>

  <tr>
    <td>
      PendingMessages
    </td>

    <td>
      Messages for pending tasks in array(limit 15)
    </td>
  </tr>
</table>