Skip to content
Proud to collaborate with Microsoft for Startups

control.collection.flatten ​

Flatten nested lists up to a given depth (-1 = fully flat)

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-control
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
itemsjsonYes——
depthintegerNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
itemsjsonNo——
depthintegerNo——
resultlistNo——
countintegerNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "control.collection.flatten",
  "initial_data": {
    "items": "value"
  }
}