Flex icon

Flex

Integrate with Flex API for task management

Workflow → Complete Task

AI-generated

Summary

Complete a specified workflow task by sending a result code, optional comment, and optional metadata field updates to the Flex API.

Inputs

  • Workflow Task ID (required) — ID of the workflow task to complete
  • Task Result (required) — Result code for the task completion, such as numeric codes or specific strings required by the Flex workflow
  • Comment (required) — Optional comment for the task completion
  • Metadata Fields — Optional set of metadata fields to update when completing the task; each consists of a field name and value

Output shape

a JSON object representing the API response from the Flex service after completing the workflow task

The operation returns the response from the Flex API as JSON. No pagination or additional output shaping is applied.

Examples

Example 1: Complete a workflow task with result code '0', a comment, and update two metadata fields.

Set 'Workflow Task ID' to the target task ID, 'Task Result' to '0', enter a comment, and provide metadata fields like [{'name':'field1', 'value':'value1'}, {'name':'field2', 'value':'value2'}].

Links

Discussion