--- alias: user-guide-automation-task-mes-recipeuploadreply tags: - automation tasks description: "This task sends a reply to a recipe upload request received from the MES system" --- # Recipe Upload Reply :iot-recipebodyrequested-lg:{style="font-size:100px"} This task sends a reply back to the MES system in response to a recipe upload request. It is used in the **Data Flow** scope, paired with the [Recipe Upload Request](task_recipeUploadRequest.md) task to complete the request/reply cycle. ![Connect IoT Recipe Upload Reply Task](./images/recipeUploadReply-task.png) ## Workflows | Data Flow | Control Flow | | :--------: | :---------: | | :material-check:{ style="color: #4DB6AC" } | :material-close:{ style="color: #EF5350" } | ## Inputs | Name | Data Type | Description | | -------------- | --------- | ------------------------------------------------------------------------------------------------ | | Failure Reason | `Any` | The failure reason to send back to the MES. Leave undefined (or omit) if the upload succeeded. | | Activate | `Any` | Activates the task, triggering the reply to be sent. | ## Outputs | Name | Data Type | Description | | ------- | --------- | ------------------------------------------------------ | | Success | `Boolean` | Triggered when the reply is successfully sent. | | Error | `Error` | Triggered when the task fails to send the reply. | ## Settings This task has no additional settings beyond the default task settings. ![Connect IoT Recipe Upload Reply Task Settings](./images/recipeUploadReply-settings.png) ## Behavior When activated, this task sends a reply back to the MES in response to a recipe upload request. If **Failure Reason** is provided, it is sent as the failure content; otherwise, the MES interprets the reply as a successful upload. ## Remarks This task can only be used within the **Data Flow** scope of a [Recipe Upload Request](task_recipeUploadRequest.md) task. {% include-markdown 'includes/pages/automation_zones_note.md' %}