Update a Dictionary key

Dm114

Well-known member
It's easy to update the value field if a dictionary entry with the Set variable action. But it's not possible to modify programmatically the key value of this item

So, this Action Block updates a key in any kind of dictionary (single or multilevel).

INPUT variables:
- DictionaryIN (mandatory): full name of the dictionary level where to update the key
- OLDkey (mandatory): value of the key to be updated
- NEWkey: new value of the key. When omitted (empty), OLDkey will be deleted, i.e. will delete related dictionary entry

OUTPUT variables:
- DictionaryOUT: updated dictionary level
- Error: empty if dictionary successfully updated and no error found. Otherwise contains an explicit message

ℹ️ If NEWkey already exists, update fails to prevent value field overwriting

 
Top