Skip to content

Get Dictionary Keys

Type: dict-keys  ·  Package: Collections Activities v1.0.0  ·  Output: List

Gets all keys of a dictionary as a list. Useful for looping through all entries with a For Each.

Returns the list of keys from dict in outputVariable.

ParameterEditorDescription
dictexpressionThe dictionary.
outputVariablenombre de variableVariable where to save the list of keys.

Recorrer cada par del diccionario:

Get Dictionary Keys dict = = totalesPorCiudad outputVariable = ciudades
For Each items = = ciudades itemVariable = ciudad
└─ activities:
Get Dictionary Value dict = = totalesPorCiudad key = = ciudad outputVariable = total
Log message = = ciudad + ": " + total