# Item creation sub task

A sub workflow is an element in a User step

![](https://3419513391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M-oh38gD3L5x-VPk2LG%2F-M-ohSaQThP73_siAKla%2Fhelp_root_applications_workflow_user_items_sub_user.png?alt=media\&token=1f2ea0f1-c492-4305-b516-a3b58857c55c) \
**There are three types of sub workflows:**\
**Check List:** Executes one workflow for each record in a list of things to do.\
**Item Creation:** Creates a new item for each time the sub workflow is executed.\
**Verb:** A side track in the workflow where the sub workflow can be executed one or many times.

### Item Creation Sub Task <a href="#item-creation-sub-task" id="item-creation-sub-task"></a>

A sub workflow is created from a *User Step*. Create a new *User Step* and add a sub workflow element. Configure the appearance of sub workflow in the client.

**Set the following:**

* **Target Variable:** Enter a name for the output varibale. The output from the sub workflow will end up in this new table variable.
* **Title:** Text on the sub workflow button.
* **Icon:** Icon one the on the sub workflow button.
* **Sub Task Text:** Text on the Item (e.g. the Time Report) that has been created. Varibles can be added later.
* **New text:** Text on the New button, to add new item (e.g. a new Time Report)
* **Pills:** The indicator on the sub workflow button
* **Post-Blurbs:** Info parts on a created Item.

<div align="center"><img src="https://3419513391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M-oh38gD3L5x-VPk2LG%2F-M-ohWnkHBw5v9WRFK5w%2Fhelp_root_applications_workflow_user_items_sub_item_creation.png?alt=media&#x26;token=b1331a40-1504-4404-86f8-15ab5227d88c" alt="Item creation sub task example"></div>

Close the *User Step*, an icon will now appear that representing the added sub workflow. Double click on the sub workflow icon to open the (empty) sub workflow. Create a workflow, all variables from the main workflow are available in the sub workflow. Return data back to the main workflow, by configuring the *End step* in the sub workflow.&#x20;

![Configure sub workflow end task](https://3419513391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M-oh38gD3L5x-VPk2LG%2F-M-oh_oTUiMdphwL0MO_%2Fhelp_root_applications_workflow_user_items_sub_end.png?alt=media\&token=96473807-89fe-4ec4-aa1c-2b62694407a5)
