I have created expression rule to find data like {{changeid:"1234",prioritystatus:null}}
now i want to update this list of dictionary using a!update how can i do that? i want to update that field prioritystatus. I am doing this by selection of one prioritylist in dropdown box.
I have done this in user interface and on changing this status it will update the above field in this list of dictionary. But it gives error.
I have done like this:
a!update (data:{{changeid:"1234",prioritystatus:null}},index:"prioritystatus",value:1)
Discussion posts and replies are publicly visible
Hi,
You are passing a list of items in your data. Try this way it will work
a!update( a!map(changeid: "1234", prioritystatus: null), "prioritystatus", 1)
If you want to update list of values use below logic
a!update( { a!map(changeid: "1234", prioritystatus: null), a!map(changeid: "4567", prioritystatus: null) }, "prioritystatus", {1,2})
small hint: Makes code waaaay better to read