--- alias: user-guide-business-workflow-task-material-retrieve render_macros: false description: "This task retrieves a material based on a defined condition and input expression" --- # Retrieve The task allows you to Retrieve a Material. ![Screenshot showing a business workflow task for retrieving materials, labeled "MaterialReleasePost1".](images/business_workflow_task_material_retrieve.png) ??? example "Example" Trigger: - Task Name: `MaterialReleasePost_1` - Meaning: After performing Release Material. Condition: - Input Expression: `{{$MaterialReleasePost_1.Material.Step.Name=="Baking"}}` - Meaning: If the Material that was released is at the Baking Step. Action: - Input: `{{$MaterialReleasePost_1.Material}}` - Meaning: The Material that was released is retrieved. ## Behavior The user will define a Material. ## Inputs | Name | Data Type | Description |Expression| | --------------- | ---------- | - |----| | `Material` | `Material` | The Material that will be retrieved |- `{{$.Material}}`
- ``| | `Comment` | `String` | An optional comment that will be associated with the operation that is being executed || ## Outputs | Name | Data Type | Description | | --------------- | ---------- | - | | `Material` | `Material` | The Material that was retrieved | ## Remarks The Material input can be defined by the user as a simple name or an expression, such as **\{\{\$task.Material\}\}** where `task` is the name of a block that has the Material as input/output.