How to create a dictionary from the featureset attributes
Could you help me with creating a dictionary from the featureset attributes?
In the Add Item activity I have:
={'$forEach_obce.item.attributes["kod"]':$forEach_obce.item.attributes["nazev"]}
Unfortunately,my dictionary collection looks like this:

Thanks, Marek
0
-
Here is my .json:
0 -
Hi Marek,
For what you're testing, I think it would make the most sense to use an object instead of an array to hold the values (JavaScript doesn't "technically" have a type called dictionary). That would mean using the Set Property activity instead of Add Item. Here's a modification of the workflow you attached. It works for the test at the end with =$col_dictionary_obce.result["567931"].
0 -
It works, thanks!
0
Please sign in to leave a comment.
Comments
3 comments