# Create new subtask

Creates a new subtask in a Task app.

#### Parameters <a href="#parameters" id="parameters"></a>

| Parameter                | Description                                  |
| ------------------------ | -------------------------------------------- |
| Task app name            | Name of Task app in SharePoint (not id)      |
| Parent Task ID           | ID of parent task                            |
| Task name                | Name of new subtask                          |
| Start date               | When task is to be started                   |
| Due date                 | When task is to be finished                  |
| Percent complete         | How much of task that is finished. Default 0 |
| Description              | Description of task                          |
| Priority                 | Priority of task                             |
| Status                   | Status of task                               |
| Assigned to (user ID(s)) | User ID to assign task to, if any            |

#### Output <a href="#output" id="output"></a>

Record with information about whether operation failed or not.

| Member       | Description                                         |
| ------------ | --------------------------------------------------- |
| HasFailed    | Whether operation has failed or not                 |
| ErrorMessage | A description of the failure, if any                |
| Results      | Simple variable containing the results of operation |

#### Errors <a href="#errors" id="errors"></a>

| Error code | Description                                  |
| ---------- | -------------------------------------------- |
| 1000       | Unspecified error.                           |
| 1000001    | User is not authorized to perform operation. |
