Field containing a list of key-value pairs where the keys are not necessarily unique
Field containing a list of key-value pairs where the keys are not necessarily unique.
Field | Type | Description |
object_type | string | Will always be "labels". |
is_valid | boolean | True if there is at least one key-value pair. |
keys | list | A list containing all of the unique keys in this field. |
values | object | An object containing all of the keys and values of this field. Each object has a Key property and a Value property. |
count | integer | The number of key-value pairs in the dictionary. |
value | string | A comma-delimited lisf of all of the key-value pairs in this field using the form "key1:value1,key2:value2,etc..." For labels fields you do not typically care about this - use values instead. |
output | string | The same as&nbps;value |
output_in_list | string | Same as output. |
field_id | string | The identifier for this field. |
You may also treat this object as a list containing all of the key-value paris which may be iterated using a {% for %} loop. For more details, see the examples below:
List all keys and values for a labels field
Copy{% copy_to_dictionary %}
Copies properties from one or more copyable objects (see below) to an editable dictionary object. If the dictionary is not editable this will throw an error. If the dictionary does not exist then one will be created and saved to the specified varaible using the "var" behavior.
{% set_dictionary %}
Sets properties on an editable dictionary object. If the dictionary is not editable this will throw an error. If the dictionary does not exist it will be created and saved to the specified varaible using the "var" behavior.
{% create_dictionary %}
Creates a new editable dictionary with the given properties