addTask

Dynamically adds a task.

Version

2.0

Parameters

Parameter Type Description
sourceTaskName string Name of the task to replicate.
newTaskName string Name of the new task.
insertTaskType char Type of task to add (P for parallel or N for next).
recordId (optional) CapIdModel Record to which to add the task.

Notes

The function uses the source task for all task information such as assignment and statuses. If insertTaskType equals N, the function adds the task to the end of the workflow in series.