Action Data
Dictionary to Key-Value List
Converts a dictionary into a list of fromKey/toKey rows, one row per entry, so it can feed parameters that expect that row structure, such as Data Mapper's Key Mappings or Write Script's Variables.
Node IDDictToKeyValueListAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Dictionary dictionary | object | Yes | — | The dictionary to convert, supplied by a data connection. Each key becomes a row's 'fromKey' and its value the row's 'toKey'. An empty or unconnected dictionary gives an empty list; a connected value that is not a dictionary fires On Error. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | An incoming execution signal. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
Key-Value List output0 | array_object | dict_rows | Fires on success. Contains the list of fromKey/toKey rows. |
On Error output1 | object | error_message | Fires when the connected value is not a dictionary, carrying the error message. The graph continues on this output. |