Retrieve a List of Subtasks - Retrieve a List of Subtasks - This operation retrieves a list of subtasks for a task. Use it when a script needs to inspect child tasks associated with a specific task. - Content Innovation Cloud - Hyland Automate Modeler - Current/Hyland-Automate-Modeler/kpo5151028104534 - Current - Current

Hyland Automate Modeler

Platform
Content Innovation Cloud
Product
Hyland Automate Modeler
Release
Current
License
ft:lastPublication
2026-11-09T23:07:34.300254
ft:locale
en-US

This operation retrieves a list of subtasks for a task. Use it when a script needs to inspect child tasks associated with a specific task.

The base request is:

getSubtasks(taskId, maxItems, skipCount, sort)

Use getSubtasks(...) to retrieve the subtasks associated with the specified task. You can optionally specify paging and sorting parameters.

The following example retrieves up to 25 subtasks:

variables.subtasks =
    new RuntimeTaskService()
        .getSubtasks(
            variables.taskId,
            25,
            0,
            null
        );

The operation has the following signature:

RuntimeTaskService.getSubtasks(
    taskId: string,
    maxItems?: number,
    skipCount?: number,
    sort?: string
)