According to docs: a!update() Function - Appian 21.4, this function should work with a list, map, dictionary, cdt or record. I'm having difficulty with one particular case of a!update with a list of dictionary (version 21.4).
I have the following snippet of code and am receiving the following error:
This error message is unable to be duplicated with a simple index, meaning the error message is somewhat misleading to myself:
Are there any known workarounds - or does this seem like a product issue? I would rather not have to check if my data type is a list of dictionary prior to calling the a!update function.
Discussion posts and replies are publicly visible
Overall i'm a bit disappointed in a!update() since it doesn't replace updateDictionary()'s ability to update multiple properties simultaneously.
In your case however, you might simply need to put your a!update() call inside a!forEach()?
I think a!update has been updated recently to update multiple properties - give it a shot.
Trying to genericize this enough so it works with any data type, but guess i'll just with a!forEach for now
Thanks, I didn't realize it'd been updated since its original release - my memory is fuzzy on the details but i feel like the original version just broke in that use case.