Overview
**NOTE: This plug-in is deprecated and no longer recommended for use for sites running on Appian 21.4 or later. The functionality of this component is available in Appian without installing the plug-in. You can use a!update() and a!keys() in Appian 21.4 or later.**
Dictionaries are one of the most useful data structures available in Appian. This plug-in provides tools to dynamically create dictionaries from key-value pairs, update dictionaries with new values (including nested dictionaries), and understand what keys are available in a dictionary to help with dynamic control.
Key Features & Functionality
FUNCTIONS
DEPRECATED FUNCTIONS
@ilan.gold
the function "updatedictionary" is throwing
error:Expression evaluation error at function 'updatedictionary': Could not cast from List of Dictionary to Dictionary. Details: CastInvalidCould not cast from List of Dictionary to Dictionary. Details: CastInvalid
for below code :( i am trying to update "multiple cdt/array cdt" )
updatedictionary( dictionary: { { A1: 0, test: 01 }, { A1: 0, test: 01 }, { A1: 0, test: 01 } }, fieldsAndValues: { A1: { 1, 1, 1 } })
You can't pass a list of dictionary into the expression, instead do:
a!forEach( items: { { A1: 0, test: 01 }, { A1: 0, test: 01 }, { A1: 0, test: 01 } }, expression: updatedictionary( fv!item, { A1: 1 } ))